Commit 27e5f0bbd352701ac4b3af96213ec2ee178802eb
1 parent
1253c194
0.3.5 添加社区域名
Showing
6 changed files
with
18 additions
and
6 deletions
CNLiveEnvironment.podspec
CNLiveEnvironment/Classes/CNLiveEnvironment.h
| ... | ... | @@ -37,6 +37,7 @@ |
| 37 | 37 | #define API_Manageshop [CNLiveEnvironmentManager manager].kAPI_Manageshop |
| 38 | 38 | #define API_Managemall [CNLiveEnvironmentManager manager].kAPI_Managemall |
| 39 | 39 | #define API_LtyAdmin [CNLiveEnvironmentManager manager].kAPI_LtyAdmin |
| 40 | +#define API_Community [CNLiveEnvironmentManager manager].kAPI_Community | |
| 40 | 41 | |
| 41 | 42 | // BundleId |
| 42 | 43 | #define BundleId [CNLiveEnvironmentManager manager].bundleId | ... | ... |
CNLiveEnvironment/Classes/CNLiveEnvironmentManager.h
| ... | ... | @@ -43,6 +43,8 @@ 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 | +///社区域名 | |
| 47 | +@property (nonatomic, copy, readonly) NSString *kAPI_Community; | |
| 46 | 48 | |
| 47 | 49 | @property (nonatomic, copy, readonly) NSString *environmentDesc; // 环境描述 |
| 48 | 50 | @property (nonatomic, copy, readonly) NSString *bundleId; // BundleId | ... | ... |
CNLiveEnvironment/Classes/CNLiveEnvironmentManager.m
| ... | ... | @@ -28,6 +28,7 @@ |
| 28 | 28 | @property (nonatomic, copy, readwrite) NSString *kAPI_Managemall; |
| 29 | 29 | @property (nonatomic, copy, readwrite) NSString *kAPI_Manageshop; |
| 30 | 30 | @property (nonatomic, copy, readwrite) NSString *kAPI_LtyAdmin; |
| 31 | +@property (nonatomic, copy, readwrite) NSString *kAPI_Community; | |
| 31 | 32 | |
| 32 | 33 | @property (nonatomic, copy, readwrite) NSString *environmentDesc; //环境描述 |
| 33 | 34 | @property (nonatomic, copy, readwrite) NSString *bundleId; //BundleId |
| ... | ... | @@ -40,7 +41,6 @@ |
| 40 | 41 | |
| 41 | 42 | @property (nonatomic, assign, readwrite) NSInteger kIM_Cer_BusiId; // IM |
| 42 | 43 | @property (nonatomic, copy, readwrite) NSString *kTIM_GetTokenUrl; // IM请求token |
| 43 | - | |
| 44 | 44 | @property (nonatomic, copy, readwrite) NSString *kGDApiKey; // 高德地图Key |
| 45 | 45 | |
| 46 | 46 | @property (nonatomic, copy, readwrite) NSString *kBDAppId; //百度身份证识别 |
| ... | ... | @@ -160,8 +160,9 @@ static CNLiveEnvironmentManager *_instance = nil; |
| 160 | 160 | manager.kAPI_Classify = @"http://cmstest.cnlive.com/cms";//@"http://cmstest.cnlive.com:8768"; |
| 161 | 161 | manager.kAPI_Managemall = @"https://wjjshop.cnlive.com"; |
| 162 | 162 | manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com"; |
| 163 | - manager.kAPI_LtyAdmin = @"http://ltyadmintest.cnlive.com"; | |
| 164 | - | |
| 163 | + manager.kAPI_LtyAdmin = @"http://ltyadmintest.cnlive.com"; | |
| 164 | + manager.kAPI_Community = @"http://testapi.community.cnlive.com"; | |
| 165 | + | |
| 165 | 166 | manager.environmentDesc = @"测试企业版"; |
| 166 | 167 | manager.bundleId = @"com.cnlive.CNLiveNetAddInHouse.debug"; |
| 167 | 168 | |
| ... | ... | @@ -243,8 +244,9 @@ static CNLiveEnvironmentManager *_instance = nil; |
| 243 | 244 | manager.kAPI_Classify = @"http://cms.cnlive.com/api";//@"http://cms.cnlive.com:8768"; |
| 244 | 245 | manager.kAPI_Managemall = @"https://managemall.cnlive.com"; |
| 245 | 246 | manager.kAPI_Manageshop = @"https://manageshop.cnlive.com"; |
| 246 | - manager.kAPI_LtyAdmin = @"http://ltyadmin.cnlive.com"; | |
| 247 | - | |
| 247 | + manager.kAPI_LtyAdmin = @"http://ltyadmin.cnlive.com"; | |
| 248 | + manager.kAPI_Community = @"http://api.community.cnlive.com"; | |
| 249 | + | |
| 248 | 250 | manager.environmentDesc = @"正式企业版"; |
| 249 | 251 | manager.bundleId = @"com.cnlive.CNLiveNetAddInHouse"; |
| 250 | 252 | |
| ... | ... | @@ -327,6 +329,7 @@ static CNLiveEnvironmentManager *_instance = nil; |
| 327 | 329 | manager.kAPI_Managemall = @"https://wjjshop.cnlive.com"; |
| 328 | 330 | manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com"; |
| 329 | 331 | manager.kAPI_LtyAdmin = @"http://ltyadmintest.cnlive.com"; |
| 332 | + manager.kAPI_Community = @"http://testapi.community.cnlive.com"; | |
| 330 | 333 | |
| 331 | 334 | manager.environmentDesc = @"测试商店版"; |
| 332 | 335 | manager.bundleId = @"com.cnlive.CNLiveNetAdd.debug"; |
| ... | ... | @@ -412,6 +415,7 @@ static CNLiveEnvironmentManager *_instance = nil; |
| 412 | 415 | manager.kAPI_Managemall = @"https://managemall.cnlive.com"; |
| 413 | 416 | manager.kAPI_Manageshop = @"https://manageshop.cnlive.com"; |
| 414 | 417 | manager.kAPI_LtyAdmin = @"http://ltyadmin.cnlive.com"; |
| 418 | + manager.kAPI_Community = @"http://api.community.cnlive.com"; | |
| 415 | 419 | |
| 416 | 420 | manager.environmentDesc = @"正式商店版"; |
| 417 | 421 | manager.bundleId = @"com.cnlive.CNLiveNetAdd"; |
| ... | ... | @@ -496,6 +500,7 @@ static CNLiveEnvironmentManager *_instance = nil; |
| 496 | 500 | manager.kAPI_Managemall = @"https://wjjshop.cnlive.com"; |
| 497 | 501 | manager.kAPI_Manageshop = @"https://wjjshop.cnlive.com"; |
| 498 | 502 | manager.kAPI_LtyAdmin = @"http://ltyadmintest.cnlive.com"; |
| 503 | + manager.kAPI_Community = @"http://testapi.community.cnlive.com"; | |
| 499 | 504 | |
| 500 | 505 | manager.environmentDesc = @"测试TestFlight版"; |
| 501 | 506 | manager.bundleId = @"com.cnlive.CNLiveNetAdd.debug"; | ... | ... |
CNLiveEnvironment/Classes/CNLiveInterface.h
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | #define cn_API_Manageshop(url) [NSString stringWithFormat:@"%@%@",[CNLiveEnvironmentManager manager].kAPI_Manageshop,url] |
| 22 | 22 | #define cn_API_Managemall(url) [NSString stringWithFormat:@"%@%@",[CNLiveEnvironmentManager manager].kAPI_Managemall,url] |
| 23 | 23 | #define cn_API_LtyAdmin(url) [NSString stringWithFormat:@"%@%@",[CNLiveEnvironmentManager manager].kAPI_LtyAdmin,url] |
| 24 | +#define cn_API_CommuntyApi(url) [NSString stringWithFormat:@"%@%@",[CNLiveEnvironmentManager manager].kAPI_Community,url] | |
| 24 | 25 | |
| 25 | 26 | // 分享使用到的logo图片 |
| 26 | 27 | #define NetAddShareImgUrl cn_WjjH5_Host(@"/static/logo.png") | ... | ... |
README.md
| ... | ... | @@ -36,3 +36,6 @@ pod 'CNLiveEnvironment' |
| 36 | 36 | ## License |
| 37 | 37 | |
| 38 | 38 | CNLiveEnvironment is available under the MIT license. See the LICENSE file for more info. |
| 39 | + | |
| 40 | +##推送 | |
| 41 | +pod repo push CNLiveRepos CNLiveEnvironment.podspec --verbose --allow-warnings --use-libraries --skip-import-validation | ... | ... |