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