Commit fda3f21b6b6747bc78c9b1df1cad6ec8e8b44a21

Authored by daojian
1 parent 41fbb525

添加支付,直播 域名

添加商家版APP环境配置
CNLiveEnvironment.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveEnvironment'
11   - s.version = '0.3.8'
  11 + s.version = '0.3.9'
12 12 s.summary = 'CNLiveEnvironment'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveEnvironment/Classes/CNLiveEnvironment.h
... ... @@ -76,6 +76,16 @@
76 76 测试@"http://testapi.community.cnlive.com"*/
77 77 #define API_Community [CNLiveEnvironmentManager manager].kAPI_Community
78 78  
  79 +/**
  80 + 正式测试环境都是 https://apiumspay.cnlive.com
  81 + */
  82 +#define API_Pay [CNLiveEnvironmentManager manager].kAPI_Pay
  83 +
  84 +/**
  85 + 正式测试环境都是 http://bc.cnlive.com
  86 + */
  87 +#define API_OB [CNLiveEnvironmentManager manager].kAPI_OB
  88 +
79 89 // BundleId
80 90 #define BundleId [CNLiveEnvironmentManager manager].bundleId
81 91  
... ...
CNLiveEnvironment/Classes/CNLiveEnvironmentManager.h
... ... @@ -21,11 +21,11 @@ typedef NS_ENUM(NSInteger, CNLiveEnvironmentType) {
21 21 typedef NS_ENUM(NSInteger, CNLiveAppType) {
22 22 CNLiveAppTypeUser = 0, //用户端
23 23 CNLiveAppTypeBLive = 1, //企业端直播
  24 + CNLiveAppTypeBusiness = 2, //商家版
24 25 };
25 26  
26 27 @interface CNLiveEnvironmentManager : NSObject
27 28 @property (nonatomic, assign, readonly) CNLiveAppType appType; //app类型
28   -@property (nonatomic, assign, readonly) BOOL isBLive; // 企业端直播
29 29  
30 30 @property (nonatomic, assign, readonly) CNLiveEnvironmentType environmentType; // 详细环境
31 31 @property (nonatomic, assign, readonly) BOOL isTestEnvironment; // 是否是测试环境
... ... @@ -43,6 +43,9 @@ typedef NS_ENUM(NSInteger, CNLiveAppType) {
43 43 @property (nonatomic, copy, readonly) NSString *kAPI_Managemall;
44 44 @property (nonatomic, copy, readonly) NSString *kAPI_Manageshop;
45 45 @property (nonatomic, copy, readonly) NSString *kAPI_LtyAdmin;
  46 +@property (nonatomic, copy, readonly) NSString *kAPI_Pay;
  47 +@property (nonatomic, copy, readonly) NSString *kAPI_OB;
  48 +
46 49 ///社区域名
47 50 @property (nonatomic, copy, readonly) NSString *kAPI_Community;
48 51  
... ... @@ -151,6 +154,15 @@ typedef NS_ENUM(NSInteger, CNLiveAppType) {
151 154 */
152 155 + (void)setBLiveEnvironment:(CNLiveEnvironmentType)environmentType;
153 156  
  157 +/**
  158 + * @abstract 初始化商家版环境配置
  159 + * @param environmentType 环境
  160 + * @warning 必传参数
  161 + * 在默认DEBUG环境下为测试商店版,建议使用如下方法初始化.
  162 + * 在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; 方法中调用
  163 + */
  164 ++ (void)setBusinessEnvironment:(CNLiveEnvironmentType)environmentType;
  165 +
154 166 @end
155 167  
156 168 NS_ASSUME_NONNULL_END
... ...
CNLiveEnvironment/Classes/CNLiveEnvironmentManager.m
... ... @@ -10,7 +10,6 @@
10 10  
11 11 @interface CNLiveEnvironmentManager()
12 12 @property (nonatomic, assign, readwrite) CNLiveAppType appType; //app类型
13   -@property (nonatomic, assign, readwrite) BOOL isBLive; // 企业端直播
14 13  
15 14 @property (nonatomic, assign, readwrite) CNLiveEnvironmentType environmentType; //详细环境
16 15 @property (nonatomic, assign, readwrite) BOOL isTestEnvironment; // 是否是测试环境
... ... @@ -28,6 +27,9 @@
28 27 @property (nonatomic, copy, readwrite) NSString *kAPI_Managemall;
29 28 @property (nonatomic, copy, readwrite) NSString *kAPI_Manageshop;
30 29 @property (nonatomic, copy, readwrite) NSString *kAPI_LtyAdmin;
  30 +@property (nonatomic, copy, readwrite) NSString *kAPI_Pay;
  31 +@property (nonatomic, copy, readwrite) NSString *kAPI_OB;
  32 +
31 33 @property (nonatomic, copy, readwrite) NSString *kAPI_Community;
32 34  
33 35 @property (nonatomic, copy, readwrite) NSString *environmentDesc; //环境描述
... ... @@ -129,6 +131,38 @@ static CNLiveEnvironmentManager *_instance = nil;
129 131 - (nonnull id)mutableCopyWithZone:(nullable NSZone *)zone {
130 132 return _instance;
131 133 }
  134 +/**
  135 + * @abstract 初始化配置
  136 + * @param appType app类型
  137 + * @param environmentType 环境
  138 + * @warning 必传参数
  139 + * 在默认DEBUG环境下为测试商店版,建议使用如下方法初始化.
  140 + * 在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; 方法中调用
  141 + */
  142 ++ (void)setAppType:(CNLiveAppType)appType environmentType:(CNLiveEnvironmentType)environmentType {
  143 + CNLiveEnvironmentManager *manager = [CNLiveEnvironmentManager manager];
  144 + manager.appType = appType;
  145 + switch (appType) {
  146 + // 用户端
  147 + case CNLiveAppTypeUser:
  148 + {
  149 + [self setEnvironment:environmentType];
  150 + }
  151 + break;
  152 + // 企业端
  153 + case CNLiveAppTypeBLive:
  154 + {
  155 + [self setBLiveEnvironment:environmentType];
  156 + }
  157 + break;
  158 + case CNLiveAppTypeBusiness:
  159 + {
  160 + [self setBusinessEnvironment:environmentType];
  161 + }
  162 + break;
  163 +
  164 + }
  165 +}
132 166  
133 167 #pragma mark - ******** 用户端 ********
134 168 /**
... ... @@ -161,6 +195,7 @@ static CNLiveEnvironmentManager *_instance = nil;
161 195 manager.kAPI_Managemall = @"https://wjjshop.cnlive.com";
162 196 manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com";
163 197 manager.kAPI_LtyAdmin = @"https://ltyadmintest.cnlive.com";
  198 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
164 199 manager.kAPI_Community = @"http://testapi.community.cnlive.com";
165 200  
166 201 manager.environmentDesc = @"测试企业版";
... ... @@ -245,6 +280,7 @@ static CNLiveEnvironmentManager *_instance = nil;
245 280 manager.kAPI_Managemall = @"https://managemall.cnlive.com";
246 281 manager.kAPI_Manageshop = @"https://manageshop.cnlive.com";
247 282 manager.kAPI_LtyAdmin = @"https://ltyadmin.cnlive.com";
  283 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
248 284 manager.kAPI_Community = @"https://apicommunity.cnlive.com";//@"http://api.community.cnlive.com";
249 285  
250 286 manager.environmentDesc = @"正式企业版";
... ... @@ -329,6 +365,7 @@ static CNLiveEnvironmentManager *_instance = nil;
329 365 manager.kAPI_Managemall = @"https://wjjshop.cnlive.com";
330 366 manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com";
331 367 manager.kAPI_LtyAdmin = @"https://ltyadmintest.cnlive.com";
  368 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
332 369 manager.kAPI_Community = @"http://testapi.community.cnlive.com";
333 370  
334 371 manager.environmentDesc = @"测试商店版";
... ... @@ -415,6 +452,7 @@ static CNLiveEnvironmentManager *_instance = nil;
415 452 manager.kAPI_Managemall = @"https://managemall.cnlive.com";
416 453 manager.kAPI_Manageshop = @"https://manageshop.cnlive.com";
417 454 manager.kAPI_LtyAdmin = @"https://ltyadmin.cnlive.com";
  455 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
418 456 manager.kAPI_Community = @"https://apicommunity.cnlive.com";//@"http://api.community.cnlive.com";
419 457  
420 458 manager.environmentDesc = @"正式商店版";
... ... @@ -500,6 +538,7 @@ static CNLiveEnvironmentManager *_instance = nil;
500 538 manager.kAPI_Managemall = @"https://wjjshop.cnlive.com";
501 539 manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com";
502 540 manager.kAPI_LtyAdmin = @"https://ltyadmintest.cnlive.com";
  541 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
503 542 manager.kAPI_Community = @"http://testapi.community.cnlive.com";
504 543  
505 544 manager.environmentDesc = @"测试TestFlight版";
... ... @@ -574,41 +613,12 @@ static CNLiveEnvironmentManager *_instance = nil;
574 613  
575 614 }
576 615  
577   -/**
578   - * @abstract 初始化配置
579   - * @param appType app类型
580   - * @param environmentType 环境
581   - * @warning 必传参数
582   - * 在默认DEBUG环境下为测试商店版,建议使用如下方法初始化.
583   - * 在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; 方法中调用
584   - */
585   -+ (void)setAppType:(CNLiveAppType)appType environmentType:(CNLiveEnvironmentType)environmentType {
586   - CNLiveEnvironmentManager *manager = [CNLiveEnvironmentManager manager];
587   - manager.appType = appType;
588   - switch (appType) {
589   - // 用户端
590   - case CNLiveAppTypeUser:
591   - {
592   - manager.isBLive = NO;
593   - [self setEnvironment:environmentType];
594   - }
595   - break;
596   - // 企业端
597   - case CNLiveAppTypeBLive:
598   - {
599   - manager.isBLive = YES;
600   - [self setBLiveEnvironment:environmentType];
601   - }
602   - break;
603   - }
604   -}
605 616  
606   -#pragma mark - ******** 私有方法 ********
  617 +
607 618 #pragma mark - ******** 企业端直播 ********
608 619 + (void)setBLiveEnvironment:(CNLiveEnvironmentType)environmentType{
609 620 CNLiveEnvironmentManager *manager = [CNLiveEnvironmentManager manager];
610 621 manager.environmentType = environmentType;
611   - manager.isBLive = YES;
612 622 switch (environmentType) {
613 623 #pragma mark - 测试企业环境
614 624 case CNLiveDebugInHouse://测试企业环境
... ... @@ -639,7 +649,8 @@ static CNLiveEnvironmentManager *_instance = nil;
639 649 manager.kAPI_Report = @"https://mobile.cnlive.com";
640 650 manager.kAPI_OpenApi2 = @"https://api.cnlive.com/open/api2";
641 651 manager.kAPI_Classify = @"https://cmstest.cnlive.com";//@"http://cmstest.cnlive.com:8768";
642   -
  652 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
  653 +
643 654 manager.environmentDesc = @"测试商店版";
644 655 manager.bundleId = @"com.cnlive.CNLiveNetPlusBusiness.debug";
645 656  
... ... @@ -716,7 +727,8 @@ static CNLiveEnvironmentManager *_instance = nil;
716 727 manager.kAPI_Report = @"https://mobile.cnlive.com";
717 728 manager.kAPI_OpenApi2 = @"https://api.cnlive.com/open/api2";
718 729 manager.kAPI_Classify = @"https://cms.cnlive.com/api";//@"http://cms.cnlive.com:8768";
719   -
  730 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
  731 +
720 732 manager.environmentDesc = @"正式商店版";
721 733 manager.bundleId = @"com.cnlive.CNLiveNetPlusBusiness";
722 734  
... ... @@ -792,7 +804,8 @@ static CNLiveEnvironmentManager *_instance = nil;
792 804 manager.kAPI_Report = @"https://mobile.cnlive.com";
793 805 manager.kAPI_OpenApi2 = @"https://api.cnlive.com/open/api2";
794 806 manager.kAPI_Classify = @"https://cmstest.cnlive.com";//@"http://cmstest.cnlive.com:8768";
795   -
  807 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
  808 +
796 809 manager.environmentDesc = @"测试商店版";
797 810 manager.bundleId = @"com.cnlive.CNLiveNetPlusBusiness";
798 811  
... ... @@ -860,4 +873,321 @@ static CNLiveEnvironmentManager *_instance = nil;
860 873  
861 874 }
862 875  
  876 +#pragma mark - ******** 商家版APP ********
  877 +
  878 +/**
  879 + * @abstract 初始化商家版环境配置
  880 + * @param environmentType 环境
  881 + * @warning 必传参数
  882 + * 在默认DEBUG环境下为测试商店版,建议使用如下方法初始化.
  883 + * 在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; 方法中调用
  884 + */
  885 ++ (void)setBusinessEnvironment:(CNLiveEnvironmentType)environmentType
  886 +{
  887 + CNLiveEnvironmentManager *manager = [CNLiveEnvironmentManager manager];
  888 + manager.environmentType = environmentType;
  889 + switch (environmentType) {
  890 +#pragma mark - 测试企业环境
  891 + case CNLiveDebugInHouse://测试企业环境
  892 + {
  893 + // 没有企业版
  894 + }
  895 + break;
  896 +
  897 +#pragma mark - 正式企业环境
  898 + case CNLiveProductionInHouse://正式企业环境
  899 + {
  900 + //没有企业版
  901 + }
  902 + break;
  903 +
  904 +#pragma mark - 测试商店环境
  905 + case CNLiveDebugAppStore://测试商店环境
  906 + {
  907 + manager.isTestEnvironment = YES;
  908 +
  909 + manager.kAppDownloadUrl = @"";
  910 + manager.kWjjH5_Host = @"";
  911 + manager.kWjjH5_Host_Https = @"";
  912 +
  913 + manager.kAPI_Host = @"https://apiwjjtest.cnlive.com";
  914 + manager.kAPI_Contact = @"https://imtest.cnlive.com";
  915 + manager.kAPI_Refund = @"https://wjj.ys1.cnliveimg.com";
  916 + manager.kAPI_Report = @"https://mobile.cnlive.com";
  917 + manager.kAPI_OpenApi2 = @"https://api.cnlive.com/open/api2";
  918 + manager.kAPI_Classify = @"https://cmstest.cnlive.com";//@"http://cmstest.cnlive.com:8768";
  919 + manager.kAPI_Managemall = @"https://wjjshop.cnlive.com";
  920 + manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com";
  921 + manager.kAPI_LtyAdmin = @"https://ltyadmintest.cnlive.com";
  922 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
  923 + manager.kAPI_OB = @"http://bc.cnlive.com";
  924 + manager.kAPI_Community = @"http://testapi.community.cnlive.com";
  925 +
  926 + manager.environmentDesc = @"测试商家版";
  927 + manager.bundleId = @"com.cnlive.pro.CNLiveNetAdd.debug";
  928 + manager.displayName = @"商家测试版";
  929 +
  930 + //视讯云
  931 + manager.appId = @"802_k8ho7qks68";
  932 + manager.appKey = @"1895402ecc187b852e1904230a1aa5731549ed404e9726";
  933 + manager.appSecret = @"c1f2b527f89f0e5b8b69470432ae64f96878a1082776e8";
  934 +
  935 + //高德地图
  936 + manager.kGDApiKey = @"";
  937 +
  938 + //听云
  939 + manager.kTingYunAppKey = @"5a7bdef3401a4865afd1146ac93c0254";
  940 +
  941 + //七牛上传
  942 + manager.kBucketName = @"mam-wjjtest-802";
  943 + manager.kPhotoUrl = @"http://wjjtest.ys2.cnliveimg.com/";
  944 + manager.kMultipleCategory = 371;
  945 + manager.kWitnessMultipleCategory = 375;
  946 +
  947 + //百度,未集成
  948 + manager.kBDAppId = @"";
  949 + manager.kBDAppKey = @"";
  950 + manager.kBDSecret = @"";
  951 +
  952 + //百度地图 未集成
  953 + manager.kBDMapAK = @"";
  954 + manager.kBDMapMCODE = @"";
  955 + manager.kBDMapServiceID = 0;
  956 +
  957 + //微信
  958 + manager.kWeiChatAppId_Share = @"wxf3efed251351237f";
  959 + manager.kWeiChatAppSecret_Share = @"408342760c3132ee72294b0408fdcb75";
  960 +
  961 + //QQ
  962 + manager.kQQShareAppId_Share = @"1106941862";
  963 + manager.kQQShareAppSecret_Share = @"JQCHsIHDn5wEzI4R";
  964 +
  965 + //微博
  966 + manager.kWeiBoShareAppId_Share = @"2195551085";
  967 + manager.kWeiBoShareAppSecret_Share = @"242c2ec1d2e96e9a96290c1dc1e3586e";
  968 + manager.kWeiBoShareAppKey_Share = @"";
  969 +
  970 + //shareSDK
  971 + manager.kShareSDKAppId_Share = @"2ece172c330c7";
  972 + manager.kShareSDKAppSecret_Share = @"a46853617a952a99fc5bfc167cacf1d1";
  973 +
  974 + manager.kWjjShare_Iden = @"group.com.cnlive.CNLiveNetPlusBusiness.debug";
  975 +
  976 +
  977 +#if DEBUG
  978 + manager.kIM_Cer_BusiId = 9244;
  979 +#else
  980 + manager.kIM_Cer_BusiId = 9245;
  981 +#endif
  982 + manager.kTIM_GetTokenUrl = @"https://imtest.cnlive.com/CnliveIM/notify/generateUserSign.action";
  983 + manager.kWXAccount = @"wjj_app_test";
  984 + manager.kSdkAppId = @"1400052101";
  985 + manager.kSdkAccountType = @"27313";
  986 +
  987 + //友盟 未集成
  988 + manager.kUMengAppKey = @"";
  989 +
  990 + //支付宝支付Schems, 未集成
  991 + manager.kNetAddUrlSchems = @"";
  992 + //银联支付Schems ,未集成
  993 + manager.kNetAddUnionPaySchems = @"";
  994 + //苹果支付, 未集成
  995 + manager.kWjjApplePayAVProductIdBase = @"";
  996 +
  997 +
  998 + }
  999 + break;
  1000 +
  1001 +#pragma mark - 正式商店环境
  1002 + case CNLiveProductionAppStore://正式商店环境
  1003 + {
  1004 + manager.isTestEnvironment = NO;
  1005 +
  1006 + manager.kAppDownloadUrl = @"";
  1007 + manager.kWjjH5_Host = @"";
  1008 + manager.kWjjH5_Host_Https = @"";
  1009 +
  1010 + manager.kAPI_Host = @"https://apiwjj.cnlive.com";
  1011 + manager.kAPI_Contact = @"https://wjjim.cnlive.com";
  1012 + manager.kAPI_Refund = @"https://wjj.ys1.cnliveimg.com";
  1013 + manager.kAPI_Report = @"https://mobile.cnlive.com";
  1014 + manager.kAPI_OpenApi2 = @"https://api.cnlive.com/open/api2";
  1015 + manager.kAPI_Classify = @"https://cms.cnlive.com/api";//@"http://cms.cnlive.com:8768";
  1016 + manager.kAPI_Managemall = @"https://managemall.cnlive.com";
  1017 + manager.kAPI_Manageshop = @"https://manageshop.cnlive.com";
  1018 + manager.kAPI_LtyAdmin = @"https://ltyadmin.cnlive.com";
  1019 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
  1020 + manager.kAPI_OB = @"http://bc.cnlive.com";
  1021 + manager.kAPI_Community = @"https://apicommunity.cnlive.com";//@"http://api.community.cnlive.com";
  1022 +
  1023 + manager.environmentDesc = @"正式商家版";
  1024 + manager.bundleId = @"com.cnlive.pro.CNLiveNetAdd";
  1025 + manager.displayName = @"网家家商家版";
  1026 +
  1027 + //视讯云
  1028 + manager.appId = @"769_jetj5xbp69";
  1029 + manager.appKey = @"e2a5ff98e86cd261e836484f469248a29084d9a256c4c9";
  1030 + manager.appSecret = @"01833e9477ee6de98a351e8d1491c487a894c57634a6b1";
  1031 +
  1032 + //高德地图
  1033 + manager.kGDApiKey = @"";
  1034 +
  1035 + //听云
  1036 + manager.kTingYunAppKey = @"58f2f0adbea54ffbb00fe2298aa795f5";
  1037 +
  1038 + //七牛上传
  1039 + manager.kBucketName = @"mam-wjjtest-802";
  1040 + manager.kPhotoUrl = @"http://wjjtest.ys2.cnliveimg.com/";
  1041 + manager.kMultipleCategory = 371;
  1042 + manager.kWitnessMultipleCategory = 375;
  1043 +
  1044 + //百度,未集成
  1045 + manager.kBDAppId = @"";
  1046 + manager.kBDAppKey = @"";
  1047 + manager.kBDSecret = @"";
  1048 +
  1049 + //百度地图 未集成
  1050 + manager.kBDMapAK = @"";
  1051 + manager.kBDMapMCODE = @"";
  1052 + manager.kBDMapServiceID = 0;
  1053 +
  1054 + //微信
  1055 + manager.kWeiChatAppId_Share = @"wx0bef54cbf717f2d9";
  1056 + manager.kWeiChatAppSecret_Share = @"afb1e0b76a9ec283a0012b2572417a39";
  1057 +
  1058 + //QQ
  1059 + manager.kQQShareAppId_Share = @"1107044760";
  1060 + manager.kQQShareAppSecret_Share = @"ZGDqsNkMAqz5JcIK";
  1061 +
  1062 + //微博
  1063 + manager.kWeiBoShareAppId_Share = @"2195551085";
  1064 + manager.kWeiBoShareAppSecret_Share = @"242c2ec1d2e96e9a96290c1dc1e3586e";
  1065 + manager.kWeiBoShareAppKey_Share = @"";
  1066 +
  1067 + //shareSDK
  1068 + manager.kShareSDKAppId_Share = @"2e9e33b76e424";
  1069 + manager.kShareSDKAppSecret_Share = @"9f219c0e51f96e66577d1b2241642d04";
  1070 + //没用到
  1071 + manager.kWjjShare_Iden = @"";
  1072 +
  1073 +
  1074 +#if DEBUG
  1075 + manager.kIM_Cer_BusiId = 7348;
  1076 +#else
  1077 + manager.kIM_Cer_BusiId = 7350;
  1078 +#endif
  1079 + manager.kTIM_GetTokenUrl = @"https://imtest.cnlive.com/CnliveIM/notify/generateUserSign.action";
  1080 + manager.kWXAccount = @"wjj_app";
  1081 + manager.kSdkAppId = @"1400051680";
  1082 + manager.kSdkAccountType = @"19645";
  1083 +
  1084 + //友盟 未集成
  1085 + manager.kUMengAppKey = @"";
  1086 +
  1087 + //支付宝支付Schems, 未集成
  1088 + manager.kNetAddUrlSchems = @"";
  1089 + //银联支付Schems ,未集成
  1090 + manager.kNetAddUnionPaySchems = @"";
  1091 + //苹果支付, 未集成
  1092 + manager.kWjjApplePayAVProductIdBase = @"";
  1093 +
  1094 + }
  1095 + break;
  1096 +
  1097 +#pragma mark - TestFlight环境
  1098 + case CNLiveTestFlight://TestFlight环境
  1099 + {
  1100 + manager.isTestEnvironment = YES;
  1101 +
  1102 + manager.kAppDownloadUrl = @"";
  1103 + manager.kWjjH5_Host = @"";
  1104 + manager.kWjjH5_Host_Https = @"";
  1105 +
  1106 + manager.kAPI_Host = @"https://apiwjjtest.cnlive.com";
  1107 + manager.kAPI_Contact = @"https://imtest.cnlive.com";
  1108 + manager.kAPI_Refund = @"https://wjj.ys1.cnliveimg.com";
  1109 + manager.kAPI_Report = @"https://mobile.cnlive.com";
  1110 + manager.kAPI_OpenApi2 = @"https://api.cnlive.com/open/api2";
  1111 + manager.kAPI_Classify = @"https://cmstest.cnlive.com";//@"http://cmstest.cnlive.com:8768";
  1112 + manager.kAPI_Pay = @"https://apiumspay.cnlive.com";
  1113 +
  1114 + manager.environmentDesc = @"测试商家版";
  1115 + manager.bundleId = @"com.cnlive.pro.CNLiveNetAdd.debug";
  1116 + manager.displayName = @"商家测试版";
  1117 +
  1118 + //视讯云
  1119 + manager.appId = @"802_kn8khh2c84";
  1120 + manager.appKey = @"71e4e2d6cfa4fb8511f8868c9af7ab102a559c4b77575a";
  1121 + manager.appSecret = @"e983d590e4dd5fdd50faaaaf2c05e26fb642922d0f6109";
  1122 +
  1123 + //高德地图
  1124 + manager.kGDApiKey = @"";
  1125 +
  1126 + //听云
  1127 + manager.kTingYunAppKey = @"5a7bdef3401a4865afd1146ac93c0254";
  1128 +
  1129 + //七牛上传
  1130 + manager.kBucketName = @"mam-wjjtest-802";
  1131 + manager.kPhotoUrl = @"http://wjjtest.ys2.cnliveimg.com/";
  1132 + manager.kMultipleCategory = 371;
  1133 + manager.kWitnessMultipleCategory = 375;
  1134 +
  1135 + //百度,未集成
  1136 + manager.kBDAppId = @"";
  1137 + manager.kBDAppKey = @"";
  1138 + manager.kBDSecret = @"";
  1139 +
  1140 + //百度地图 未集成
  1141 + manager.kBDMapAK = @"";
  1142 + manager.kBDMapMCODE = @"";
  1143 + manager.kBDMapServiceID = 0;
  1144 +
  1145 + //微信
  1146 + manager.kWeiChatAppId_Share = @"wxf3efed251351237f";
  1147 + manager.kWeiChatAppSecret_Share = @"408342760c3132ee72294b0408fdcb75";
  1148 +
  1149 + //QQ
  1150 + manager.kQQShareAppId_Share = @"1106941862";
  1151 + manager.kQQShareAppSecret_Share = @"JQCHsIHDn5wEzI4R";
  1152 +
  1153 + //微博
  1154 + manager.kWeiBoShareAppId_Share = @"2195551085";
  1155 + manager.kWeiBoShareAppSecret_Share = @"242c2ec1d2e96e9a96290c1dc1e3586e";
  1156 + manager.kWeiBoShareAppKey_Share = @"";
  1157 +
  1158 + //shareSDK
  1159 + manager.kShareSDKAppId_Share = @"2e9e33b76e424";
  1160 + manager.kShareSDKAppSecret_Share = @"9f219c0e51f96e66577d1b2241642d04";
  1161 +
  1162 + //没用到
  1163 + manager.kWjjShare_Iden = @"";
  1164 +
  1165 +
  1166 +#if DEBUG
  1167 + manager.kIM_Cer_BusiId = 9244;
  1168 +#else
  1169 + manager.kIM_Cer_BusiId = 9245;
  1170 +#endif
  1171 + manager.kTIM_GetTokenUrl = @"https://imtest.cnlive.com/CnliveIM/notify/generateUserSign.action";
  1172 + manager.kWXAccount = @"wjj_app_test";
  1173 + manager.kSdkAppId = @"1400052101";
  1174 + manager.kSdkAccountType = @"27313";
  1175 +
  1176 + //友盟 未集成
  1177 + manager.kUMengAppKey = @"";
  1178 +
  1179 + //支付宝支付Schems, 未集成
  1180 + manager.kNetAddUrlSchems = @"";
  1181 + //银联支付Schems ,未集成
  1182 + manager.kNetAddUnionPaySchems = @"";
  1183 + //苹果支付, 未集成
  1184 + manager.kWjjApplePayAVProductIdBase = @"";
  1185 +
  1186 + }
  1187 + break;
  1188 + default:
  1189 + break;
  1190 +
  1191 + }
  1192 +}
863 1193 @end
... ...