// // ENUM.h // jiaPei // // Created by apple on 15/11/4. // Copyright (c) 2015年 JCZ. All rights reserved. // /**其实我可以专门写一个类。又有enum。还有许多属性可以共享。 */ #ifndef jiaPei_ENUM_h #define jiaPei_ENUM_h //defaultWebServiceUrl2是测试服务器 defaultWebServiceUrl是服务器 //学员端请求 218.85.55.253:10001 192.168.1.6:8082/ fj.jppt.com.cn #define defaultHttp @"http://app.lnjppt.com/" //#define defaultHttp2 @"http://218.85.55.253:9091/" //外网 #define defaultHttp2 @"http://192.168.8.99:8080/" // #define defaultHttp3 @"http://192.168.8.99:8081/" //基础请求 #define defaultHttpUrl @"appservice/student/" #define defaultHttpUrl2 @"appservice/student/" //上传资源 #define defaultUploadUrl @"appservice/fileupload/" #define defaultUploadUrl2 @"appservice/fileupload/" //实操计时相关 #define defaultTrainUrl @"appservice/train/" #define defaultTrainUrl2 @"appservice/train/" //公共类的请求 #define defaultCommonUrl @"appservice/common/" #define defaultCommonUrl2 @"appservice/common/" //模拟 #define defaultLnsimulator @"appservice/lnsimulator/" #define defaultLnsimulator2 @"appservice/lnsimulator/" //模拟 #define defaultEdu @"appservice/edu/" #define defaultEdu2 @"appservice/edu/" // webservice #define lnwebserviceApi @"lnwebservice/api/" #define lnwebserviceApi2 @"lnwebservice/api/" // 远程教育 #define lnwebserviceEdu @"lnwebservice/edu/" #define lnwebserviceEdu2 @"lnwebservice/edu/" //远程理论 #define defaultEducation isOfficial? @"appservice/education/" : @"appservice2/education/" //#define defaultWebServiceNameSpace @"http://impl.webservice.core.miaxis.com" /**夜间模式,设置后,要保存在userDefault里面。用这个key来存取。 0表示关闭夜间模式,1表示开启。 */ #define nightModeKey @"nightMode" /**topUp */ //测试的通知地址: http://218.6.66.181:9999/jxglpt/admin/alipay/rechargeNotify //服务器通知地址: http://fj.jppt.com.cn/jxglpt/admin/alipay/rechargeNotify #define topUpNotify @"http://fj.jppt.com.cn/jxglpt/admin/alipay/rechargeNotify"//服务器通知地址 /**aliPay */ //测试的通知地址: http://218.6.66.181:9999/jxglpt/admin/alipay/appNotify //服务器通知地址: http://fj.jppt.com.cn/jxglpt/admin/alipay/appNotify #define aliPayNotify @"http://fj.jppt.com.cn/jxglpt/admin/alipay/appNotify"//服务器通知地址 #define aliPayScheme @"" // 支付宝回调串 #define aliPartner @"" //合作身份者id,以2088开头的16位纯数字(客户给) #define aliSeller @"" //收款支付宝账号 #define aliPrivateKey @"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKuaMzMc8J2Mrf4bb28I3rp5NcddxLuG2NVmb0w/h+HZz0lRFyuTstSPqcceMq6fuCTvZBF7SBya23mvafBPsVdsYwN9nU+Z7pZoc4FrafzoS98kvJM54Y4MI2r+ZwrUglyIGTzqvxuGO24gKnDRsNregXgMuOvoBKjLvsIar7sdAgMBAAECgYAKNN+6uIvvMwDeTk9wcTyeJrt2IjOjW7/l4XPZOyYf3s6fc71HED/guLLGbxtgm4teVwbCq2x8lxFayX4plvPbQFhhdbNn9YtqoYcw3YBjt3IoOrtSHb9ReIez1DbpJ7AzkqIC2ZW4APZ/e0HZ7U4JpgfZudsc6mX6PMX2/3EgwQJBANrMNXXa4B/huWnClFc3iMNaZxLtN7pi5fQeelELYQCbEPWRpnpBKn2tMd4Bps7M79/huwbxGGKmwaW5AlOOeMUCQQDIx635x5SWEZSPL+pGa+ecesAfPLc9udCw1TyaQ4lYWJEh/ZLJxa9x/wkMWZLEw6y7Aw3z/kkcXCdUPoHR5G55AkBLBFUYEXFivPvbXRGLTckgYbCRdq/ywdHh/0kk3Gfn00LfT47qv8kXyfgdDCfrI6zi7/w2Bxe7Sz192o8HowOZAkBAMR8dYcLOq/Y8RUx4kV0ueUxdcFMBiBwBvVsv0vHhbgeQv3qjyfFK2Agzi5vSDuF1tQdL//ut9oSYeZeV3Ju5AkEAgXBg3lsx8/rv4OUaB4tKMAk3xR8zoIHLnwl5jfBzD97nx3W11qEHRPfen90++9OWE9lLxvYkV1yHKDiFjS9QJw==" // 密钥 //通知的名字及参数 #define ALI_PAY_RESULT @"Ali_pay_result_isSuccessed" #define ALIPAY_SUCCESSED @"Ali_pay_isSuccessed" #define ALIPAY_FAILED @"Ali_pay_isFailed" /** 这个是表示资格证的判断条件 */ /**从userDefaul里面存取题库名称的key,不是C1A1这些。而是小车,客车,货车等 由userInfo负责,读写等操作。 */ #define quesLibNameKey @"questionLibraryName" /**这里添加一个背题模式好了。把加强的去掉,换成背题。 所谓背题,就是直接选择正确答案,然后显示解释 */ typedef NS_ENUM(NSInteger, QuestionType) { QuestionTypeOrdered = 1, QuestionTypeRandom, QuestionTypeChapt, QuestionTypeFault, //强化模式5 QuestionTypeStrenth, QuestionTypeUndo, QuestionTypeFavorite, //背题模式 QuestionTypeRecite, QuestionTypeExam, QuestionTypeNotDo, QuestionTypeNewRule, QuestionTypeMiOne, QuestionTypeMiTwo }; typedef NS_ENUM(NSInteger, CorrectType){ CorrectTypeFault = 0, CorrectTypeUndo, CorrectTypeRignt }; /**其实可以用C的枚举类型。 */ typedef enum{ aadf = 1 }GALSKFJIEJFLKJSALDKJF; typedef void (^MyBlockType)(id); typedef void (^BlockTypeVo)(void); #define TICK NSDate *startTime = [NSDate date] #define TOCK NSLog(@"Time: %f", -[startTime timeIntervalSinceNow]) /**这里稍微修改,就可以实现全局显示时间点。 */ #endif