Commit 0acdf7f792c0f06058b1eb81a43305bed2f70fc5

Authored by zhangxiaowen
1 parent 1f542e00

no message

CNLiveEnvironmentConfiguration.podspec
@@ -29,8 +29,6 @@ TODO: Add long description of the pod here. @@ -29,8 +29,6 @@ TODO: Add long description of the pod here.
29 # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' 29 # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
30 30
31 s.ios.deployment_target = '9.0' 31 s.ios.deployment_target = '9.0'
32 -  
33 - s.source_files = 'CNLiveEnvironmentConfiguration/Classes/**/*'  
34 32
35 # s.resource_bundles = { 33 # s.resource_bundles = {
36 # 'CNLiveEnvironmentConfiguration' => ['CNLiveEnvironmentConfiguration/Assets/*.png'] 34 # 'CNLiveEnvironmentConfiguration' => ['CNLiveEnvironmentConfiguration/Assets/*.png']
@@ -39,4 +37,20 @@ TODO: Add long description of the pod here. @@ -39,4 +37,20 @@ TODO: Add long description of the pod here.
39 # s.public_header_files = 'Pod/Classes/**/*.h' 37 # s.public_header_files = 'Pod/Classes/**/*.h'
40 # s.frameworks = 'UIKit', 'MapKit' 38 # s.frameworks = 'UIKit', 'MapKit'
41 # s.dependency 'AFNetworking', '~> 2.3' 39 # s.dependency 'AFNetworking', '~> 2.3'
  40 + # 测试个人
  41 + s.subspec 'DebugPersonal' do |ss|
  42 + ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/DebugPersonal/*'
  43 + end
  44 + # 测试企业
  45 + s.subspec 'DebugInHouse' do |ss|
  46 + ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/DebugInHouse/*'
  47 + end
  48 + # 正式个人
  49 + s.subspec 'ReleasePersonal' do |ss|
  50 + ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/ReleasePersonal/*'
  51 + end
  52 + # 正式企业
  53 + s.subspec 'ReleaseInHouse' do |ss|
  54 + ss.source_files = 'CNLiveEnvironmentConfiguration/Classes/ReleaseInHouse/*'
  55 + end
42 end 56 end
CNLiveEnvironmentConfiguration/Classes/DebugInHouse/CNEnvironmentHeader.h 0 → 100644
  1 +//
  2 +// CNEnvironmentHeader.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by 张旭 on 2018/5/30.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef CNEnvironmentHeader_h
  10 +#define CNEnvironmentHeader_h
  11 +
  12 +/*
  13 + *网家家环境配置文件
  14 +*/
  15 +
  16 +// App Store 中 AppID 用于跳转 App Store 下载/评分
  17 +#define AppStoreAppId @"1337575478"
  18 +
  19 +// 请求查询app在App Store的上架信息
  20 +#define AppStoreAppInfo @"https://itunes.apple.com/lookup?id=1337575478"
  21 +
  22 +//// h5新闻详情中分享使用到的图片地址
  23 +//#define netAddShareImgUrl WjjH5_Host@"/static/logo.png"
  24 +//#define WjjH5Short_Host @"http://dwz.cnlive.com"
  25 +
  26 +// 正式版--测试环境com.cnlive.CNLiveNetAdd.debug 网家家测试版
  27 +// 正式版--正式环境com.cnlive.CNLiveNetAdd 网家家正式版
  28 +// 企业版--测试环境com.cnlive.CNLiveNetAddInHouse.debug 网家家测试企版
  29 +// 企业版--正式环境com.cnlive.CNLiveNetAddInHouse 网家家内测版
  30 +
  31 +#define ShowGuideView @"no" // yes:显示欢迎页 no:不显示欢迎页
  32 +
  33 +#define Environment_ON 0 // 1:正式环境平台 0:测试环境平台
  34 +
  35 +#if Environment_ON
  36 +
  37 +#pragma mark - 正式环境
  38 +//正式环境平台配置
  39 +//IMSDK相关的配置
  40 +#define kWXAccount @"wjj_app"
  41 +#define kSdkAppId @"1400051680"
  42 +#define kSdkAccountType @"19645"
  43 +
  44 +#ifndef CNLiveNetAddUrlSchems
  45 +#define CNLiveNetAddUrlSchems @"CNLiveNetAddUrlSchems" // 支付宝支付Schems
  46 +#endif
  47 +
  48 +#ifndef CNLiveNetAddUnionPaySchems
  49 +#define CNLiveNetAddUnionPaySchems @"CNLiveNetAddUnionPaySchems" // 银联支付Schems
  50 +#endif
  51 +
  52 +#define CNLiveNewAddDownloadUrl @"http://apiwjj.cnlive.com/download/index.html"
  53 +#define ShareDarenHomeUrl @"http://apiwjj.cnlive.com/daren/download.html"
  54 +#define WjjH5_Host @"http://wjjh5.cnlive.com"
  55 +#define WjjH5_VideoChina WjjH5_Host@"/cnnews.html"
  56 +#define WjjH5_NumProduct WjjH5_Host@"/cndr.html"
  57 +
  58 +#define API_Host @"https://apiwjj.cnlive.com"
  59 +
  60 +#define API_Contact @"https://wjjim.cnlive.com"
  61 +#define API_Refund @"https://wjj.ys1.cnliveimg.com"
  62 +#define API_Report @"https://mobile.cnlive.com"
  63 +#define API_ThirdPay API_Host
  64 +#define API_OpenApi2 @"https://api.cnlive.com/open/api2"
  65 +#define API_Classify @"http://cms.cnlive.com:8768"
  66 +
  67 +#define WjjLive_Host @"http://wjjh5.cnlive.com"
  68 +
  69 +#define TIM_GetTokenUrl API_OpenApi2@"/im_chat/generateUserSign"
  70 +
  71 +// 网++默认头像地址
  72 +#define CNLiveNetAddDefaultHead API_Refund@"/admin/test/head.png"
  73 +
  74 +#define API_BucketName @"mam-wjj-769"
  75 +#define API_PhotoUrl @"http://wjj.ys2.cnliveimg.com/" // 还不知道
  76 +#define MultipleCategory 366
  77 +#define WitnessMultipleCategory 370
  78 +
  79 +#pragma mark - 正式个人/企业开关
  80 +#define IPA_APPSTORE 0 ////1: App Store版 0:企业版
  81 +
  82 +#if IPA_APPSTORE
  83 +// 正式个人版
  84 +////////////////////////////////////////////////////////
  85 +//////////// AppConfig
  86 +////////////////////////////////////////////////////////
  87 +
  88 +//正式版 com.cnlive.CNLiveNetAdd
  89 +#ifndef AppId
  90 +#define AppId @"769_jetj7bq525"
  91 +#endif
  92 +#ifndef APPKey
  93 +#define APPKey @"0d57b045ec0c3988a682d94c644e66b9b8e0d2b8ef937d"
  94 +#endif
  95 +#ifndef AppSecret
  96 +#define AppSecret @"275e8dc29274a1186d82f65bc607c231d02bcb3bfd8976"
  97 +#define DisplayName @"网家家"
  98 +#endif
  99 +
  100 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAdd"
  101 +
  102 +////////////////////////////////////////////////////////
  103 +//////////// IM推送证书相关
  104 +////////////////////////////////////////////////////////
  105 +#if DEBUG
  106 +#define IM_Cer_busiId 12452 //7307已过期
  107 +#else
  108 +#define IM_Cer_busiId 12453 //7308已过期
  109 +#endif
  110 +
  111 +////////////////////////////////////////////////////////
  112 +//////////// 高德地图Key
  113 +////////////////////////////////////////////////////////
  114 +#define GDApiKey @"5a0e2a559b987e67d5b0c13490adde02"
  115 +
  116 +////////////////////////////////////////////////////////
  117 +//////////// 百度身份证识别
  118 +////////////////////////////////////////////////////////
  119 +#define BDAppId @"14380860"
  120 +#define BDAppKey @"4bX1eK7SiCL461QBnRKilowc"
  121 +#define BDSecret @"BTzXLoPbUjlLeOM1nHnfOuTB9q18YZVq"
  122 +
  123 +////////////////////////////////////////////////////////
  124 +//////////// 听云
  125 +////////////////////////////////////////////////////////
  126 +/*听云AppKey*/ //URL Scheme: tingyun.33700
  127 +static NSString *const CNLiveTingYunAppKey = @"37c9ea3f439145269e5cffe095466b17";
  128 +#else
  129 +// 正式企业版
  130 +// 企业版 com.cnlive.CNLiveNetAddInHouse
  131 +#ifndef AppId
  132 +#define AppId @"769_jetja50p18"
  133 +#endif
  134 +#ifndef APPKey
  135 +#define APPKey @"ad101b9152817a79b5c33c3617b96ff91385096ff3b4ba"
  136 +#endif
  137 +#ifndef AppSecret
  138 +#define AppSecret @"6a324a475a8b9ef903139cb2626fdab6bf4362d6d47c83"
  139 +#define DisplayName @"网家家"
  140 +#endif
  141 +
  142 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse"
  143 +
  144 +//企业证书id
  145 +#if DEBUG
  146 +#define IM_Cer_busiId 7346
  147 +#else
  148 +#define IM_Cer_busiId 7347
  149 +#endif
  150 +
  151 +////////////////////////////////////////////////////////
  152 +//////////// 高德地图Key
  153 +////////////////////////////////////////////////////////
  154 +#define GDApiKey @"84d765606a54635aec2648f663d4a5ed"
  155 +
  156 +////////////////////////////////////////////////////////
  157 +//////////// 百度身份证识别
  158 +////////////////////////////////////////////////////////
  159 +#define BDAppId @"14380872"
  160 +#define BDAppKey @"ibl8vbKkPVYBw5IOvR8tVGGo"
  161 +#define BDSecret @"QEd6n1qruIGG8AYkyLyqepksO2uUe0GK"
  162 +
  163 +////////////////////////////////////////////////////////
  164 +//////////// 听云
  165 +////////////////////////////////////////////////////////
  166 +/*听云AppKey*/ //URL Scheme: tingyun.33699
  167 +static NSString *const CNLiveTingYunAppKey = @"782d9a70547a4e3f91cb328b122bb85c";
  168 +
  169 +#endif
  170 +
  171 +//////////////////////////////////////
  172 +///////////////// 正式平台
  173 +//////////////////////////////////////
  174 +
  175 +/*微信相关参数*/
  176 +static NSString *const CNLiveWeiChatAppId_Share = @"wxed528fc749b7ee88";
  177 +static NSString *const CNLiveWeiChatAppSecret_Share = @"729c3d3055fe336bcdef7020c2548e89";
  178 +
  179 +/*腾讯相关参数*/
  180 +static NSString *const CNLiveQQShareAppId_Share = @"1106691520";
  181 +static NSString *const CNLiveQQShareAppSecret_Share = @"kLZ8CglGFjzrJFan";
  182 +
  183 +/*shareSDK相关参数*/
  184 +static NSString *const CNLiveShareSDKAppId_Share = @"24e4abeaa92d8";
  185 +static NSString *const CNLiveShareSDKAppSecret_Share = @"da94a6f881d404092c9a7108e4470e8f";
  186 +
  187 +#else
  188 +
  189 +#pragma mark - 测试环境
  190 +////////////////////////////////////////////////////////////
  191 +// 测试环境平台配置
  192 +// IMSDK相关的配置
  193 +#define kWXAccount @"wjj_app_test"
  194 +#define kSdkAppId @"1400052101"
  195 +#define kSdkAccountType @"27313"
  196 +
  197 +#ifndef CNLiveNetAddUrlSchems
  198 +#define CNLiveNetAddUrlSchems @"CNLiveNetAddTestUrlSchems" // 支付宝支付Schems
  199 +#endif
  200 +#ifndef CNLiveNetAddUnionPaySchems
  201 +#define CNLiveNetAddUnionPaySchems @"CNLiveNetAddTestUnionPaySchems" // 银联支付Schems
  202 +#endif
  203 +
  204 +#define CNLiveNewAddDownloadUrl @"https://fir.im/layf"
  205 +#define ShareDarenHomeUrl @"http://apiwjj.cnlive.com/download/index.html"
  206 +#define WjjH5_Host @"http://wjjh5test.cnlive.com"
  207 +#define WjjH5_VideoChina WjjH5_Host@"/cnnews.html"
  208 +#define WjjH5_NumProduct WjjH5_Host@"/cndr.html"
  209 +
  210 +#define API_Host @"https://apiwjjtest.cnlive.com"
  211 +#define API_Contact @"https://imtest.cnlive.com"
  212 +#define API_OpenApi2 @"https://api.cnlive.com/open/api2"
  213 +#define API_Refund @"https://wjj.ys1.cnliveimg.com"
  214 +#define API_Report @"https://mobile.cnlive.com"
  215 +#define API_ThirdPay API_Host
  216 +#define API_BucketName @"mam-wjjtest-802"
  217 +#define API_PhotoUrl @"http://wjjtest.ys2.cnliveimg.com/"
  218 +#define MultipleCategory 371
  219 +#define WitnessMultipleCategory 375
  220 +#define API_Classify @"http://cmstest.cnlive.com:8768"
  221 +#define WjjLive_Host @"http://wjjh5test.cnlive.com"
  222 +
  223 +#define TIM_GetTokenUrl API_Contact@"/CnliveIM/notify/generateUserSign.action"
  224 +// 网++默认头像地址
  225 +#define CNLiveNetAddDefaultHead API_Refund@"/admin/test/head.png"
  226 +
  227 +/*微信相关参数*/
  228 +static NSString *const CNLiveWeiChatAppId_Share = @"wx9b7f9443a8ccf15a";
  229 +static NSString *const CNLiveWeiChatAppSecret_Share = @"8d9970bf2901411d8dd2bffb344f147e";
  230 +
  231 +/*腾讯相关参数*/
  232 +static NSString *const CNLiveQQShareAppId_Share = @"1106970445";
  233 +static NSString *const CNLiveQQShareAppSecret_Share = @"4hxuJ1HIes4i4hqT";
  234 +
  235 +/*shareSDK相关参数*/
  236 +static NSString *const CNLiveShareSDKAppId_Share = @"26192e9007048";
  237 +static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a716340363c7";
  238 +
  239 +
  240 +#pragma mark - 测试个人/企业开关
  241 +#define IPA_APPSTORE 1 ////1: 个人版 0:企业版
  242 +
  243 +#if IPA_APPSTORE
  244 +//测试个人版
  245 +////////////////////////////////////////////////////////
  246 +//////////// AppConfig
  247 +////////////////////////////////////////////////////////
  248 +//个人版 com.cnlive.CNLiveNetAdd.debug
  249 +#ifndef AppId
  250 +#define AppId @"802_jhlqbq4475"
  251 +#endif
  252 +#ifndef APPKey
  253 +#define APPKey @"d25cf0dce30e7d7ddc7c857b85ab0dde670d491fc2ffe4"
  254 +#endif
  255 +#ifndef AppSecret
  256 +#define AppSecret @"b9064cfe0a030b8b20c061fc0ee3c16acce7757874b7a2"
  257 +#define DisplayName @"网家家测试"
  258 +#endif
  259 +
  260 +
  261 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAdd.debug"
  262 +
  263 +////////////////////////////////////////////////////////
  264 +//////////// IM推送证书相关
  265 +////////////////////////////////////////////////////////
  266 +#if DEBUG
  267 +#define IM_Cer_busiId 12450 //9246已过期
  268 +#else
  269 +#define IM_Cer_busiId 12451 //9247已过期
  270 +#endif
  271 +
  272 +////////////////////////////////////////////////////////
  273 +//////////// 高德地图Key
  274 +////////////////////////////////////////////////////////
  275 +#define GDApiKey @"4b15525f4265edfed8dce1d02f08a893"
  276 +
  277 +////////////////////////////////////////////////////////
  278 +//////////// 百度身份证识别
  279 +////////////////////////////////////////////////////////
  280 +#define BDAppId @"14435697"
  281 +#define BDAppKey @"3LqIXy2AtXxrxyFM8N73QGYN"
  282 +#define BDSecret @"EKZxZza8purqGHOmngkMi7awtZkm0lOW"
  283 +
  284 +////////////////////////////////////////////////////////
  285 +//////////// 听云
  286 +////////////////////////////////////////////////////////
  287 +/*听云AppKey*/ //URL Scheme: tingyun.33185
  288 +static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352";
  289 +
  290 +#else
  291 +//测试企业版
  292 +//企业版 com.cnlive.CNLiveNetAddInHouse.debug
  293 +#ifndef AppId
  294 +#define AppId @"802_jhbqccxw08"
  295 +#endif
  296 +#ifndef APPKey
  297 +#define APPKey @"9c5619e9be747bb3b925dd215ca5923d86f12c09b9394f"
  298 +#endif
  299 +#ifndef AppSecret
  300 +#define AppSecret @"1e6380cb347255e777f72b5aa60f41daa68443a132aaea"
  301 +#define DisplayName @"网家家测试版"
  302 +#endif
  303 +
  304 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse.debug"
  305 +
  306 +//企业证书id
  307 +#if DEBUG
  308 +#define IM_Cer_busiId 9204
  309 +#else
  310 +#define IM_Cer_busiId 9205
  311 +#endif
  312 +
  313 +////////////////////////////////////////////////////////
  314 +//////////// 高德地图Key
  315 +////////////////////////////////////////////////////////
  316 +#define GDApiKey @"f4459435f1c756d2efedc6ceec12be63"
  317 +
  318 +////////////////////////////////////////////////////////
  319 +//////////// 百度身份证识别
  320 +////////////////////////////////////////////////////////
  321 +#define BDAppId @"14435716"
  322 +#define BDAppKey @"4foSD6VBILQ61olzmVAFEVGZ"
  323 +#define BDSecret @"VEuz92EVrmEVrrgTZKxYo4ApUkol7Ptk"
  324 +
  325 +////////////////////////////////////////////////////////
  326 +//////////// 听云
  327 +////////////////////////////////////////////////////////
  328 +/*听云AppKey*/ //URL Scheme: tingyun.33185
  329 +static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352";
  330 +
  331 +#endif
  332 +
  333 +#endif
  334 +
  335 +
  336 +#endif /* CNEnvironmentHeader_h */
CNLiveEnvironmentConfiguration/Classes/DebugInHouse/NetworkAPIs.h 0 → 100644
  1 +//
  2 +// NetworkAPIs.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by iOS on 2018/1/24.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef NetworkAPIs_h
  10 +#define NetworkAPIs_h
  11 +
  12 +//上传手机通讯录和 生成订单二维码时,DES加密key
  13 +#define kUploadContactsKey @"cnliveIm"
  14 +
  15 +#define iUploadContacts API_Contact@"/CnliveIM/notify/uploadContacts.action"
  16 +//其他投诉
  17 +static NSString *const CNLiveCNReporthtml = WjjH5_Host@"/cnReport.html";
  18 +
  19 +//特色群活动必要说明
  20 +static NSString *const CNActivityManageUrl = API_Refund@"/term/ActivityManagement.html";
  21 +
  22 +//特色群投票必要说明
  23 +static NSString *const CNVoteManageUrl = API_Refund@"/term/VoteManagement.html";
  24 +
  25 +//订阅号特色群活动必要说明
  26 +static NSString *const CNActivityManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=hdgl";
  27 +
  28 +//订阅号特色群投票必要说明
  29 +static NSString *const CNVoteManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=tp";
  30 +
  31 +//获取生活号列表
  32 +static NSString *const CNGetLifeSubsUrl = API_Host@"/Daren/sub/getLifeSubs.action";
  33 +
  34 +//获取达人号列表
  35 +static NSString *const CNGetDarenSubsUrl = API_Host @"/Daren/sub/getDarenSubs.action";
  36 +
  37 +//达人号列表删除某达人
  38 +static NSString *const CNDarenSubsDeleteDarenUrl = API_Host@"/Daren/sub/deleteDarenSubs.action";
  39 +
  40 +//添加某个收藏
  41 +static NSString *const CNDarenSubsCollectionUrl = API_Host@"/Daren/stock/collection.action";
  42 +
  43 +//收藏界面删除某个收藏
  44 +static NSString *const CNDarenSubsDeleteCollectionUrl = API_Host@"/Daren/stock/deleteCollection.action";
  45 +
  46 +//达人主页
  47 +static NSString *const CNDarenHomeUrl = API_Host@"/Daren/sub/getDarenHome.action";
  48 +
  49 +//获取收藏结果详情
  50 +static NSString *const CNDarenCollectListDataSourceUrl = API_Host@"/Daren/stock/getCollectionList.action";
  51 +
  52 +//生活号主页
  53 +static NSString *const CNLifeHomeUrl = API_Host@"/Daren/sub/getLifeHome.action";
  54 +
  55 +//删除生活号
  56 +static NSString *const CNLiveLifeDeleteUrl = API_Host@"/Daren/sub/deleteLifeSubs.action";
  57 +
  58 +//通过手机号查找好友
  59 +static NSString *const CNSearchByPhoneNumUrl = API_Contact@"/CnliveIM/notify/searchByPhoneNumber.action";
  60 +
  61 +
  62 +//获取已关注的达人列表
  63 +static NSString *const CNGetDarensUrl = API_Host@"/Daren/sub/getDarens.action";
  64 +
  65 +//获取达人的粉丝列表
  66 +static NSString *const CNGetFansUrl = API_Host@"/Daren/sub/getFans.action";
  67 +
  68 +//评价列表
  69 +static NSString *const CNGetDarenCommentUrl = API_Host@"/Daren/hudong/getDarenComment.action";
  70 +
  71 +//获取达人相关信息
  72 +static NSString *const CNGetDarenByIdUrl = API_Host@"/Daren/member/getDarenById.action";
  73 +
  74 +#pragma mark -
  75 +#pragma mark - 定义消息
  76 +//发送自定义消息
  77 +static NSString *const CNFriendshipVerifyUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  78 +//音视频自定义消息
  79 +static NSString *const CNVideoOrAudioUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  80 +
  81 +//音视频取得房间号
  82 +static NSString *const CNVideoOrAudioGetRoomID = API_Host@"/Daren/common/getRoomId.action";
  83 +
  84 +//发送文本消息
  85 +static NSString *const CNTextMsgPushUrl = API_Contact@"/CnliveIM/notify/textMsgPush.action";
  86 +
  87 +//生成二维码
  88 +static NSString *const CNGenOrResetCodeUrl = API_Host@"/Daren/qrcode/genOrResetQrCode.action";
  89 +//撤回消息
  90 +static NSString *const CNRevokebatchsendmsg = API_Contact@"/CnliveIM/notify/revokeBatchSendMsg.action";
  91 +//检验二维码
  92 +static NSString *const CNCheckOrNewCodeUrl = API_Host@"/Daren/qrcode/checkQrCode.action";
  93 +//扫码支付生成订单
  94 +static NSString *const CNCheckAddOrderForDarenUrl =API_Host@"/Daren/order/addOrder.action";
  95 +//目击者
  96 +static NSString *const CNChecksigninfoDarenUrl = API_Host@"/Daren/sign/checkSignInfo.action";
  97 +//扫码返回活动地址
  98 +static NSString *const CNCheckQrActivityDarenUrl = API_Host@"/Daren/sign/checkQrActivity.action";
  99 +
  100 +//获取Gif表情包列表
  101 +static NSString *const CNGifFaceShopListUrl = API_Host@"/Daren/section/getSectionList.action";
  102 +//获取一个表情包信息
  103 +static NSString *const CNGetGifFacePackageUrl = API_Host@"/Daren/section/getSectionDetail.action";
  104 +
  105 +#pragma mark -
  106 +#pragma mark - 地址管理相关
  107 +//添加联系人
  108 +static NSString *const CNAddContactUrl = API_Host@"/Daren/contact/addContact.action";
  109 +
  110 +//查询联系人
  111 +static NSString *const CNReadContacstUrl = API_Host@"/Daren/contact/readContacts.action";
  112 +
  113 +//删除联系人
  114 +static NSString *const CNDeleteContacstUrl = API_Host@"/Daren/contact/deleteContact.action";
  115 +
  116 +//更新联系人
  117 +static NSString *const CNUpdateContacstUrl = API_Host@"/Daren/contact/updateContact.action";
  118 +
  119 +
  120 +#pragma mark -
  121 +#pragma mark - 订单相关
  122 +//取消订单
  123 +static NSString *const CNOrderCancelUrl = API_Host@"/Daren/order/cancelOrder.action";
  124 +
  125 +//订单有误
  126 +static NSString *const CNOrderErrorUrl = API_Host@"/Daren/order/correctOrder.action";
  127 +
  128 +//查看订单
  129 +static NSString *const CNOrderCheckUrl = API_Host@"/Daren/order/getOrderItem.action";
  130 +
  131 +//生成订单
  132 +static NSString *const CNOrderCreateUrl = API_Host@"/Daren/order/createOrder.action";
  133 +
  134 +//修改订单
  135 +static NSString *const CNOrderModifyUrl = API_Host@"/Daren/order/modifyOrder.action";
  136 +
  137 +//确认订单
  138 +static NSString *const CNOrderConfirmUrl = API_Host@"/Daren/order/confirmOrder.action";
  139 +
  140 +//获取订单详情
  141 +static NSString *const CNGetOrderDetailUrl = API_Host@"/Daren/order/getOrderItem.action";
  142 +
  143 +//根据订单状态获取订单列表
  144 +static NSString *const CNGetOrderListUrl = API_Host@"/Daren/order/getOrdersByStatus.action";
  145 +
  146 +//申请退款
  147 +static NSString *const CNApplyRefundUrl = API_Host@"/Daren/order/applyRefund.action";
  148 +
  149 +//删除订单
  150 +static NSString *const CNDeleteOrderUrl = API_Host@"/Daren/order/deleteOrder.action";
  151 +
  152 +//催单
  153 +static NSString *const CNRemindOrderUrl = API_Contact@"/CnliveIM/notify/remind.action";
  154 +
  155 +//确认收货
  156 +static NSString *const CNConfirmRecvUrl = API_Host@"/Daren/order/confirmRecv.action";
  157 +
  158 +//评价
  159 +static NSString *const CNCommentDarenUrl = API_Host@"/Daren/hudong/commentDaren.action";
  160 +
  161 +//退款原因
  162 +static NSString *const CNRefunfReasonUrl = API_Refund@"/json/refundReason.json";
  163 +
  164 +
  165 +#pragma mark - 发布
  166 +
  167 +//发布视频 短视频接入点播云接口
  168 +static NSString *const CNPublishVideoUrl = API_OpenApi2@"/vod_epg/svInputMamForAPP";
  169 +
  170 +//发布视频 短视频上传获取bucket接口(七牛)
  171 +static NSString *const CNUploadGetBucketUrl = API_OpenApi2@"/storage/getStorageInfo";
  172 +
  173 +//发布图片,上传鉴权接口(七牛)
  174 +static NSString *const CNUploadAuthForApp = API_OpenApi2@"/vod_epg/getUploadAuthForApp";
  175 +
  176 +//上传视频成功的回调url
  177 +static NSString *const CNStockDarenVideoCallBackUrl = API_Host@"/Daren/stock/stockDarenVideo.action";
  178 +
  179 +//发布获取上冰雪banner url
  180 +static NSString *const CNPublishGetSnowBannerUrl = API_Host@"/Daren/snow/getSnowBanner.action";
  181 +
  182 +
  183 +#pragma mark - 检验群公告敏感词
  184 +
  185 +static NSString *const CNCheckFeaturedGroup = API_Host@"/Daren/announcementCheck/checkFeaturedGroup.action";
  186 +
  187 +#pragma mark - 特色群组活动管理
  188 +//获取群组活动收费记录
  189 +static NSString *const CNActiveGroupFundsRecordsUrl = API_Host@"/Daren/groupManagement/groupFundsRecords.action";
  190 +
  191 +//获取投票详情
  192 +static NSString *const CNGetVoteMsgSourceUrl = API_Host@"/Daren/vote/getVoteMsg.action";
  193 +
  194 +//获取收费详情
  195 +static NSString *const CNQueryActivityFeeSourceUrl = API_Host@"/Daren/groupManagement/queryActivityFee.action";
  196 +
  197 +//历任群主列表
  198 +static NSString *const CNGetSuccessiveGroupListUrl = API_Host@"/Daren/groupManagement/getSuccessiveGroupList.action";
  199 +
  200 +//获取投票记录的列表
  201 +static NSString *const CNGetVotesSourceListUrl = API_Host@"/Daren/vote/getVotes.action";
  202 +
  203 +//拉起支付并做定点预处理
  204 +static NSString *const CNPayByGroupMembersUrl = API_Host@"/Daren/groupManagement/payByGroupMembers.action";
  205 +
  206 +//获取支付状态
  207 +static NSString *const CNCheckPaymentSourceUrl = API_Host@"/Daren/groupManagement/checkPayment.action";
  208 +
  209 +//投票
  210 +static NSString *const CNGroupVoteSourceUrl = API_Host@"/Daren/vote/groupVote.action";
  211 +
  212 +//删除投票
  213 +static NSString *const CNStopVoteSourceUrl = API_Host@"/Daren/vote/stopVote.action";
  214 +
  215 +//获取提现的秘钥获取
  216 +static NSString *const CNGetCurrentKeySourceUrl = API_Host@"/Daren/groupManagement/getCurrentKey.action";
  217 +
  218 +//验证秘钥的发送
  219 +static NSString *const CNSendSecretKeySourceUrl = API_Host@"/Daren/groupManagement/sendSecretKey.action";
  220 +
  221 +//秘钥的验证
  222 +static NSString *const CNGroupManagementCheckKeyUrl = API_Host@"/Daren/groupManagement/checkKey.action";
  223 +
  224 +//网++支付的预支付订单生成 & 网++ 余额支付
  225 +static NSString *const CNGroupWjjPayWjjPrePaySourceUrl = API_Host@"/Daren/wjjPay/unifiedOrder.action";
  226 +
  227 +//网++ 余额支付
  228 +static NSString *const CNGroupWjjPayWjjSourceUrl = API_Host@"/Daren/wjjPay/unifiedPay.action";
  229 +
  230 +//返回公钥&随机AESKey
  231 +static NSString *const CNGroupReturnEncryptKeyUrl = API_Host@"/Daren/wjjPay/getKey.action";
  232 +
  233 +//获取分享下载的地址
  234 +static NSString *const CNShareDownloadSourceUrl = API_Host@"/Daren/common/appDownLoadUrl.action";
  235 +
  236 +//获取分享达人主页的地址
  237 +static NSString *const CNShareDarenHomeSourceUrl = API_Host@"/Daren/common/shareDarenHomePage.action";
  238 +
  239 +//扫码获取棉花糖信息
  240 +static NSString *const CNOrderMHTSourceUrl = API_Host@"/Daren/order/addOrderMHT.action";
  241 +
  242 +//订阅号特色群群组转账状态查询
  243 +static NSString *const CNQueryTransferUrl = API_Host@"/Daren/groupManagement/getQueryTransfer.action";
  244 +
  245 +#pragma mark -
  246 +#pragma mark - 朋友圈
  247 +//发布上冰雪图文
  248 +static NSString *const CNPublishSnowUrl = API_Host@"/Daren/snow/releaseSnow.action";
  249 +
  250 +//发布朋友圈
  251 +static NSString *const CNPublishFriendsCircleUrl = API_Host@"/Daren/moment/releaseMoment.action";
  252 +// 选择圈子
  253 +static NSString *const CNGetPublishTypeListUrl = API_Host@"/Daren/publishType/getPublishTypeList.action";
  254 +
  255 +//目击者发布朋友圈
  256 +static NSString *const CNPublishWintessCircleUrl = API_Host@"/Daren/witness/releaseWitness.action";
  257 +//获取朋友圈内容
  258 +static NSString *const CNGetFriendsCircleContentUrl = API_Host@"/Daren/moment/friendMoment.action";
  259 +
  260 +//获取我的朋友圈内容(我的发布记录)
  261 +static NSString *const CNGetMyCircleContentUrl = API_Host@"/Daren/moment/myMoment.action";
  262 +
  263 +//朋友圈评论或回复
  264 +static NSString *const CNFirendsCircleCommentReplyUrl = API_Host@"/Daren/hudong/commentMoment.action";
  265 +
  266 +//删除朋友圈评论
  267 +static NSString *const CNFirendsCircleCommentDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  268 +
  269 +//删除好友时,调用接口
  270 +static NSString *const CNDeleteFriendUrl = API_Host@"/Daren/sub/deleteFriend.action";
  271 +
  272 +//删除我的朋友圈某条内容
  273 +static NSString *const CNDeleteMyMomentItemUrl = API_Host@"/Daren/moment/deleteMyMoment.action";
  274 +
  275 +//删除我的相关收藏
  276 +static NSString *const CNDeleteMyCollectionItemUrl = API_Host@"/Daren/stock/collection.action";
  277 +
  278 +//读取朋友圈某条动态的评论(含回复)
  279 +static NSString *const CNGetMomentAllCommontUrl = API_OpenApi2@"/commentServices/services/commentForChat/readAll";
  280 +
  281 +//读取朋友圈某条动态的点赞列表
  282 +static NSString *const CNGetMomentAllFavoriteUrl = API_OpenApi2@"/support/readAll";
  283 +
  284 +//读取朋友圈某条动态的点赞列表(新接口)
  285 +static NSString *const CNGetMomentAllNEWFavoriteUrl = API_OpenApi2@"/support/loadSupport";
  286 +
  287 +//朋友圈某条动态点赞
  288 +static NSString *const CNFavoriteMomentUrl = API_Host@"/Daren/moment/praiseMoment.action";
  289 +
  290 +////获取朋友圈新消息数量
  291 +//static NSString *const CNGetMomentNewMsgCountUrl = API_Host@"/Daren/moment/getNewMsg.action";
  292 +
  293 +//获取朋友圈新消息详细
  294 +static NSString *const CNGetMomentNewMsgListUrl = API_Host@"/Daren/moment/getNewMsgList.action";
  295 +
  296 +//获取朋友圈记录详情
  297 +static NSString *const CNGetMomentDetailUrl = API_Host@"/Daren/moment/getMomentDetail.action";
  298 +
  299 +//清空新消息
  300 +static NSString *const CNDeleteNewMsgUrl = API_Host@"/Daren/moment/deleteNewMsg.action";
  301 +
  302 +//个人资料相册
  303 +static NSString *const CNLookUpMyMsgCommontUrl = API_Host@"/Daren/moment/lookUpMyMsg.action";
  304 +
  305 +#pragma mark -
  306 +#pragma mark - 分类
  307 +//分类频道(旧)
  308 +//static NSString *const CNCategoryGetChannelUrl = API_Host@"/Daren/center/getChannel.action";
  309 +//分类频道(新)
  310 +static NSString *const CNCategoryGetChannelUrl = API_Classify@"/contentApi/app";
  311 +//分类首页(旧 18.5.28)
  312 +//static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/center/getCenterPage.action";
  313 +//分类首页(新)
  314 +static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/classify/getNewCenterPage.action";
  315 +
  316 +//分类次级页面-达人列表
  317 +static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/classify/getNewDarensByCategory.action";
  318 +//static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/center/getDarensByCategory.action";
  319 +
  320 +//分类次级页面-已关注达人列表
  321 +static NSString *const CNGetDarensAlreadyUrl = API_Host@"/Daren/classify/getDarenList.action";
  322 +//分类次级页面-未关注达人列表
  323 +static NSString *const CNGetDarensNeverUrl = API_Host@"/Daren/classify/getUnFansOrDarenBean.action";
  324 +// 关注达人
  325 +static NSString *const CNAddDarenSubUrl = API_Host@"/Daren/sub/addDarenSub.action";
  326 +// 取消关注
  327 +static NSString *const CNCancelDarenSubUrl = API_Host@"/Daren/sub/cancelDarenSub.action";
  328 +//分类-搜索
  329 +static NSString *const CNCategorySearchDarenUrl = API_Host@"/Daren/search/searchDaren.action";
  330 +//点播-获取评论列表
  331 +static NSString *const CNGetCommentListUrl = API_OpenApi2@"/commentServices/services/commentForHdBySpId/loadComment";
  332 +//点播-评论一条节目
  333 +static NSString *const CNCommentProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/insertComment";
  334 +//点播-点赞一条节目
  335 +static NSString *const CNPraiseProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/praiseComment";
  336 +
  337 +#pragma mark - 听见中国
  338 +//获取音频播放详情
  339 +static NSString *const CNAudioPlayerDetailUrl = API_Classify@"/playApi/play";
  340 +//获取音频播放列表
  341 +static NSString *const CNAlbumAudioListUrl = API_Classify@"/contentApi/albumAudioList";
  342 +//播放进度回调
  343 +static NSString *const CNAudioRecordScheduleUrl = API_Classify@"/recordApi/end";
  344 +//历史记录列表
  345 +static NSString *const CNAudioPastRecordsUrl = API_Classify@"/recordApi/getRecords";
  346 +//删除历史记录列表
  347 +static NSString *const CNAudioDeletePastRecordsUrl = API_Classify@"/recordApi/delete";
  348 +// 简介列表
  349 +static NSString *const CNAlbumMsgUrl = API_Classify@"/contentApi/getAlbumMsg";
  350 +//节目列表
  351 +static NSString *const CNAlbumListUrl = API_Classify@"/contentApi/albumAudioList";
  352 +#pragma mark -
  353 +#pragma mark - 点播
  354 +//视频点播
  355 +static NSString *const CNVideoDemandUrl = API_Classify@"/playApi/play";
  356 +//查看全部
  357 +static NSString *const CNLookAtAllUrl = API_Classify@"/playApi/moreList";
  358 +
  359 +static NSString *const CNCommentsListUrl = API_OpenApi2@"/commentServices/services/commentForChat/loadComment";
  360 +static NSString *const CNCommentsAddUrl = API_OpenApi2@"/commentServices/services/commentForChat/insert";
  361 +static NSString *const CNCommentsDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  362 +
  363 +
  364 +//帮助与反馈上传反馈信息&图片
  365 +static NSString *const CNUpdateFeedbackUrl = API_Host@"/Daren/feedback/collectFeedback.action";
  366 +//检查扫描结果是否有效
  367 +static NSString *const CNCheckQrCodeUrl = API_Host@"/Daren/qrcode/checkQrCodeUrl.action";
  368 +
  369 +// Native 分类
  370 +// 获取所有频道列表
  371 +static NSString *const CNAllChannelList = @"http://intertv.cnlive.com/zgw/api/channellist";
  372 +//App配置信息
  373 +static NSString *const AppStart = @"http://intertv.cnlive.com/zgw/api/appstart";
  374 +
  375 +#pragma mark -
  376 +#pragma mark - 申请目击者
  377 +// 目击者身份信息申请
  378 +static NSString *const CNApplyWitnessUrl = API_Host@"/Daren/witness/applyWitness.action";
  379 +// 目击者身份校验
  380 +static NSString *const CNCheckWitnessUrl = API_Host@"/Daren/witness/checkWitness.action";
  381 +//获取订阅号主页内容
  382 +static NSString *const CNGetSpHomePageInfoUrl = API_Classify"/contentApi/getSpInfo";
  383 +//获取订阅号分页内容
  384 +static NSString *const CNGetSpContentListUrl = API_Classify"/contentApi/getSpContentList";
  385 +//关注订阅号
  386 +static NSString *const CNGetSpAddFollowsUrl = API_Host@"/Daren/group/addFollows.action";
  387 +//取消关注订阅号
  388 +static NSString *const CNGetSpUserCancelFollowUrl = API_Host@"/Daren/group/userCancelFollow.action";
  389 +//加入群聊
  390 +static NSString *const CNGetSpUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  391 +//获取全部粉丝
  392 +static NSString *const CNGetSPAllFansUrl = API_Host@"/Daren/group/getFans.action";
  393 +//订阅号加入群聊
  394 +static NSString *const CNGetUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  395 +#pragma mark -
  396 +#pragma mark - 我的
  397 +// 用户uid检测达人状态
  398 +static NSString *const CNCheckDarenUrl = API_Host@"/Daren/member/checkDaren.action";
  399 +// 获取我的余额
  400 +static NSString *const CNGetBalanceUrl = API_Host@"/Daren/member/getBalance.action";
  401 +// 获取交易记录
  402 +static NSString *const CNGetTradingRecordUrl = API_Host@"/Daren/transaction/getTransactionRecord.action";
  403 +// 获取与商户的交易记录
  404 +static NSString *const CNViewTransferRecordUrl = API_Host@"/Daren/groupManagement/viewTransferRecord.action";
  405 +// 交易记录详情
  406 +static NSString *const CNGetRecordSourceMsgUrl = API_Host@"/Daren/transaction/getRecordSourceDetail.action";
  407 +// 是否有支付密码
  408 +static NSString *const CNPasswordIsExistingUrl = API_Host@"/Daren/wjjPay/passwordIsExisting.action";
  409 +// 设置支付密码
  410 +static NSString *const CNSetPasswordUrl = API_Host@"/Daren/wjjPay/setPassword.action";
  411 +// 更改密码时发送验证码
  412 +static NSString *const CNSendSMSSetPasswordUrl = API_Host@"/Daren/sms/sendSMS.action";
  413 +// 更改密码时验证验证码
  414 +static NSString *const CNCheckVerifyCodeSetPasswordUrl = API_Host@"/Daren/sms/checkVerifyCode.action";
  415 +// 查看是否允许好友查看生活圈的状态
  416 +static NSString *const CNIsAllowFindStrangerSwitchUrl = API_Host@"/Daren/moment/findStrangerSwitch.action";
  417 +// 切换是否允许好友查看生活圈
  418 +static NSString *const CNSwitchAllowStrangerUrl = API_Host@"/Daren/moment/strangerSwitch.action";
  419 +
  420 +#pragma mark - 积分
  421 +static NSString *const CNIntegralGetTasksUrl = API_Host@"/Daren/integral/getTasks.action";//任务列表
  422 +static NSString *const CNIntegralAddUrl = API_Host@"/Daren/integral/addTask.action";//增加积分
  423 +static NSString *const CNIntegralDetailsUrl = API_Host@"/Daren/integral/integralRecord.action";//积分明细
  424 +static NSString *const CNIntegralSignInUrl = API_Host@"/Daren/integral/checkIn.action";//签到
  425 +static NSString *const CNCancellationUrl = API_Host@"/Daren/common/cancellationAccount.action";//注销账号
  426 +
  427 +#pragma mark - 隐私
  428 +static NSString *const CNPrivacyNoLetHimSeeListUrl = API_Host@"/Daren/moment/getDoNotletFsids.action";//不让他看列表
  429 +static NSString *const CNPrivacyNoSeeHimListUrl = API_Host@"/Daren/moment/getNoLookFsids.action";//不看他列表
  430 +static NSString *const CNPrivacyNoLetHimSeeAddUrl = API_Host@"/Daren/moment/addDoNotletFsids.action";//不让他看增加
  431 +static NSString *const CNPrivacyNoSeeHimAddUrl = API_Host@"/Daren/moment/addNoLookFsids.action";//不看他增加
  432 +
  433 +#pragma mark - 订阅号
  434 +//选择你感兴趣的内容
  435 +static NSString *const CNInterestedContentUrl = API_Host@"/Daren/group/getSpTags.action";
  436 +//推荐订阅号
  437 +static NSString *const CNRecommendedSubscribeUrl = API_Host@"/Daren/group/getSubscriptionNumbers.action";
  438 +//推荐订阅号完成
  439 +static NSString *const CNRecommendedSubscribeFinishUrl = API_Host@"/Daren/group/userFollowAddGroup.action";
  440 +//全部订阅号(不传sid)
  441 +static NSString *const CNAllSubscribeUrl = API_Host@"/Daren/group/getMoreSubscriptionNumbers.action";
  442 +//全部订阅号(传sid)
  443 +static NSString *const CNAllSubscribeSidUrl = API_Host@"/Daren/group/getCategorySubscriptionNumbers.action";
  444 +//关注订阅号
  445 +static NSString *const CNAddAttentionSubscribeUrl = API_Host@"/Daren/group/addFollows.action";
  446 +//取消关注订阅号
  447 +static NSString *const CNCancelAttentionSubscribeUrl = API_Host@"/Daren/group/userCancelFollow.action";
  448 +//加入群聊订阅号
  449 +static NSString *const CNJumpGroupSubscribeUrl = API_Host@"/Daren/group/userAddGroup.action";
  450 +//设置默认订阅号
  451 +static NSString *const CNSubscribeDefaultAddFollowsUrl = API_Host@"/Daren/group/defaultAddFollows.action";
  452 +
  453 +#pragma mark - App配置信息
  454 +// 获取最新版本信息
  455 +static NSString *const CNGetNewestVersionUrl = API_Host@"/Daren/common/getNewestVersion.action";
  456 +// 获取App配置信息(统一)
  457 +static NSString *const CNGetCommonMsgUrl = API_Host@"/Daren/common/getCommonMsg.action";
  458 +
  459 +#pragma mark 活动投票
  460 +//创建活动收费
  461 +static NSString *const CNAddGroupCharge = API_Host@"/Daren/groupManagement/addGroupCharge.action";
  462 +//邀请加群
  463 +static NSString *const CNInvitationAddgroup = API_Host@"/Daren/groupManagement/invitationAddGroup.action";
  464 +//获取通知列表
  465 +static NSString *const CNGetnoticesubs = API_Host@"/Daren/sub/getNoticeSubs.action";
  466 +// 同意加入群
  467 +static NSString *const CNAgreeAddgroup = API_Contact@"/CnliveIM/notify/addGroup.action"; //@"https://wjjim.cnlive.com/CnliveIM/notify/addGroup.action"
  468 +// 创建投票
  469 +static NSString *const CNAddvote = API_Host@"/Daren/vote/addVote.action";
  470 +//储存历任群主,再特色群创建和转让群主的时候创建
  471 +static NSString *const CNSavesuccessivegroup = API_Host@"/Daren/groupManagement/saveSuccessiveGroup.action";
  472 +
  473 +static NSString *const CNGetAgreementH5Url = API_Refund@"/json/wjj_user_terms.json";
  474 +
  475 +static NSString *const CNWeChatPayUrl = API_ThirdPay@"/Daren/pay/notifyWeChatPay.action";
  476 +
  477 +static NSString *const CNAliPayUrl = API_ThirdPay@"/Daren/pay/notifyAliPay.action";
  478 +
  479 +static NSString *const CNUnionPayUrl = API_ThirdPay@"/Daren/pay/notifyUnionPay.action";
  480 +
  481 +static NSString *const CNJSFYNotifyUrl = API_ThirdPay@"/Daren/pay/jsfyPayCallback.action";
  482 +
  483 +//获取特色群限制人数
  484 +static NSString *const CNGroupMemberLimit = @"https://wjj.ys1.cnliveimg.com/json/GroupMemberLimit.json";
  485 +
  486 +#pragma mark -
  487 +#pragma mark - 获取观察者相关
  488 +//获取观察者相关数据
  489 +static NSString *const CNWitnessPublishContent = API_Host@"/Daren/witness/getWitnessPublishContent.action";
  490 +
  491 +//删除观察者相关数据
  492 +static NSString *const CNDeleteOrUpdateWitnessURL = API_Host@"/Daren/witness/deleteOrUpdateWitnessPublish.action";
  493 +
  494 +#pragma mark 直播
  495 +
  496 +//取得相关视频
  497 +static NSString *const CNPlayerBackOrRelatedUrl = API_Classify@"/contentApi/playList";
  498 +
  499 +//取得直播数据
  500 +static NSString *const CNPlayerDetailUrl = API_Classify@"/playApi/play";
  501 +
  502 +//预约
  503 +static NSString *const CNPlayerOrderUrl = API_Classify@"/contentApi/liveAppoint";
  504 +
  505 +//获取直播活动播放信息4App
  506 +static NSString *const CNLiveActivityPlayInfo4App = API_OpenApi2@"/live_epg/getLiveActivityPlayInfo4App";
  507 +//获取直播间详情
  508 +static NSString *const CNLiveRoomInfo = API_Classify@"/playApi/play";
  509 +
  510 +static NSString *const CNNewLiveInfoWeb = API_Classify@"/contentApi/";
  511 +
  512 +//获取点播播放信息
  513 +static NSString *const CNLiveGetVodRates = API_OpenApi2@"/vod_epg/getRates";
  514 +
  515 +//活动举报
  516 +static NSString *const CNLiveActivityReportContent = API_Report@"/CnliveMobile/json/report.action";
  517 +
  518 +//订阅号关注
  519 +static NSString *const CNLiveSPAddFollow = API_Host@"/Daren/group/addFollows.action";
  520 +
  521 +//取消订阅号关注
  522 +static NSString *const CNLiveSPCancelFollow = API_Host@"/Daren/group/userCancelFollow.action";
  523 +
  524 +//订阅号取消管制
  525 +
  526 +
  527 +#pragma mark 黑名单
  528 +//校验黑名单
  529 +static NSString *const CNCheckBlackUser = API_Contact@"/CnliveIM/notify/checkBlackList.action";
  530 +//添加黑名单
  531 +static NSString *const CNBlackListAdd = API_Host@"/Daren/blackList/blackListAdd.action";
  532 +//删除黑名单
  533 +static NSString *const CNBlackListDelete = API_Host @"/Daren/blackList/blackListDelete.action";
  534 +//黑名单列表
  535 +static NSString *const CNBlackList = API_Host@"/Daren/blackList/blackListGet.action";
  536 +
  537 +#pragma mark 好友生活圈观看权限设置
  538 +//增加不让他人看
  539 +static NSString *const CNAdddonotletfsids = API_Host@"/Daren/moment/addDoNotletFsids.action";
  540 +//取消不让他人看
  541 +static NSString *const CNDeldonotletfsids = API_Host@"/Daren/moment/delDoNotletFsids.action";
  542 +//不让他看人列表
  543 +static NSString *const CNGetdonotletfsids = API_Host@"/Daren/moment/getDoNotletFsids.action";
  544 +
  545 +//增加不看他的
  546 +static NSString *const CNAddnolookfsids = API_Host@"/Daren/moment/addNoLookFsids.action";
  547 +//取消不看他的
  548 +static NSString *const CNDelnolookfsids = API_Host@"/Daren/moment/delNoLookFsids.action";
  549 +//不看他的列表
  550 +static NSString *const CNGetnolookfsids = API_Host@"/Daren/moment/getNoLookFsids.action";
  551 +//
  552 +////////////////////////////////////////////////////////
  553 +//////////// 数据库---表名
  554 +////////////////////////////////////////////////////////
  555 +
  556 +//达人个人主页表名
  557 +static NSString *const DarenHomeRealm = @"DarenHome";
  558 +
  559 +//达人列表表名
  560 +static NSString *const DarenSubsRealm = @"DarenSubs";
  561 +
  562 +//生活列表表名
  563 +static NSString *const LifeSubsRealm = @"LifeSubs";
  564 +
  565 +//系统订单列表表名
  566 +static NSString *const LifeHomeRealm = @"LifeHome";
  567 +
  568 +//朋友圈新消息表名
  569 +static NSString *const MomentNewMsgRealm = @"MomentNewMsg";
  570 +
  571 +#endif /* NetworkAPIs_h */
CNLiveEnvironmentConfiguration/Classes/CNEnvironmentHeader.h renamed to CNLiveEnvironmentConfiguration/Classes/DebugPersonal/CNEnvironmentHeader.h
CNLiveEnvironmentConfiguration/Classes/DebugPersonal/NetworkAPIs.h 0 → 100644
  1 +//
  2 +// NetworkAPIs.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by iOS on 2018/1/24.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef NetworkAPIs_h
  10 +#define NetworkAPIs_h
  11 +
  12 +//上传手机通讯录和 生成订单二维码时,DES加密key
  13 +#define kUploadContactsKey @"cnliveIm"
  14 +
  15 +#define iUploadContacts API_Contact@"/CnliveIM/notify/uploadContacts.action"
  16 +//其他投诉
  17 +static NSString *const CNLiveCNReporthtml = WjjH5_Host@"/cnReport.html";
  18 +
  19 +//特色群活动必要说明
  20 +static NSString *const CNActivityManageUrl = API_Refund@"/term/ActivityManagement.html";
  21 +
  22 +//特色群投票必要说明
  23 +static NSString *const CNVoteManageUrl = API_Refund@"/term/VoteManagement.html";
  24 +
  25 +//订阅号特色群活动必要说明
  26 +static NSString *const CNActivityManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=hdgl";
  27 +
  28 +//订阅号特色群投票必要说明
  29 +static NSString *const CNVoteManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=tp";
  30 +
  31 +//获取生活号列表
  32 +static NSString *const CNGetLifeSubsUrl = API_Host@"/Daren/sub/getLifeSubs.action";
  33 +
  34 +//获取达人号列表
  35 +static NSString *const CNGetDarenSubsUrl = API_Host @"/Daren/sub/getDarenSubs.action";
  36 +
  37 +//达人号列表删除某达人
  38 +static NSString *const CNDarenSubsDeleteDarenUrl = API_Host@"/Daren/sub/deleteDarenSubs.action";
  39 +
  40 +//添加某个收藏
  41 +static NSString *const CNDarenSubsCollectionUrl = API_Host@"/Daren/stock/collection.action";
  42 +
  43 +//收藏界面删除某个收藏
  44 +static NSString *const CNDarenSubsDeleteCollectionUrl = API_Host@"/Daren/stock/deleteCollection.action";
  45 +
  46 +//达人主页
  47 +static NSString *const CNDarenHomeUrl = API_Host@"/Daren/sub/getDarenHome.action";
  48 +
  49 +//获取收藏结果详情
  50 +static NSString *const CNDarenCollectListDataSourceUrl = API_Host@"/Daren/stock/getCollectionList.action";
  51 +
  52 +//生活号主页
  53 +static NSString *const CNLifeHomeUrl = API_Host@"/Daren/sub/getLifeHome.action";
  54 +
  55 +//删除生活号
  56 +static NSString *const CNLiveLifeDeleteUrl = API_Host@"/Daren/sub/deleteLifeSubs.action";
  57 +
  58 +//通过手机号查找好友
  59 +static NSString *const CNSearchByPhoneNumUrl = API_Contact@"/CnliveIM/notify/searchByPhoneNumber.action";
  60 +
  61 +
  62 +//获取已关注的达人列表
  63 +static NSString *const CNGetDarensUrl = API_Host@"/Daren/sub/getDarens.action";
  64 +
  65 +//获取达人的粉丝列表
  66 +static NSString *const CNGetFansUrl = API_Host@"/Daren/sub/getFans.action";
  67 +
  68 +//评价列表
  69 +static NSString *const CNGetDarenCommentUrl = API_Host@"/Daren/hudong/getDarenComment.action";
  70 +
  71 +//获取达人相关信息
  72 +static NSString *const CNGetDarenByIdUrl = API_Host@"/Daren/member/getDarenById.action";
  73 +
  74 +#pragma mark -
  75 +#pragma mark - 定义消息
  76 +//发送自定义消息
  77 +static NSString *const CNFriendshipVerifyUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  78 +//音视频自定义消息
  79 +static NSString *const CNVideoOrAudioUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  80 +
  81 +//音视频取得房间号
  82 +static NSString *const CNVideoOrAudioGetRoomID = API_Host@"/Daren/common/getRoomId.action";
  83 +
  84 +//发送文本消息
  85 +static NSString *const CNTextMsgPushUrl = API_Contact@"/CnliveIM/notify/textMsgPush.action";
  86 +
  87 +//生成二维码
  88 +static NSString *const CNGenOrResetCodeUrl = API_Host@"/Daren/qrcode/genOrResetQrCode.action";
  89 +//撤回消息
  90 +static NSString *const CNRevokebatchsendmsg = API_Contact@"/CnliveIM/notify/revokeBatchSendMsg.action";
  91 +//检验二维码
  92 +static NSString *const CNCheckOrNewCodeUrl = API_Host@"/Daren/qrcode/checkQrCode.action";
  93 +//扫码支付生成订单
  94 +static NSString *const CNCheckAddOrderForDarenUrl =API_Host@"/Daren/order/addOrder.action";
  95 +//目击者
  96 +static NSString *const CNChecksigninfoDarenUrl = API_Host@"/Daren/sign/checkSignInfo.action";
  97 +//扫码返回活动地址
  98 +static NSString *const CNCheckQrActivityDarenUrl = API_Host@"/Daren/sign/checkQrActivity.action";
  99 +
  100 +//获取Gif表情包列表
  101 +static NSString *const CNGifFaceShopListUrl = API_Host@"/Daren/section/getSectionList.action";
  102 +//获取一个表情包信息
  103 +static NSString *const CNGetGifFacePackageUrl = API_Host@"/Daren/section/getSectionDetail.action";
  104 +
  105 +#pragma mark -
  106 +#pragma mark - 地址管理相关
  107 +//添加联系人
  108 +static NSString *const CNAddContactUrl = API_Host@"/Daren/contact/addContact.action";
  109 +
  110 +//查询联系人
  111 +static NSString *const CNReadContacstUrl = API_Host@"/Daren/contact/readContacts.action";
  112 +
  113 +//删除联系人
  114 +static NSString *const CNDeleteContacstUrl = API_Host@"/Daren/contact/deleteContact.action";
  115 +
  116 +//更新联系人
  117 +static NSString *const CNUpdateContacstUrl = API_Host@"/Daren/contact/updateContact.action";
  118 +
  119 +
  120 +#pragma mark -
  121 +#pragma mark - 订单相关
  122 +//取消订单
  123 +static NSString *const CNOrderCancelUrl = API_Host@"/Daren/order/cancelOrder.action";
  124 +
  125 +//订单有误
  126 +static NSString *const CNOrderErrorUrl = API_Host@"/Daren/order/correctOrder.action";
  127 +
  128 +//查看订单
  129 +static NSString *const CNOrderCheckUrl = API_Host@"/Daren/order/getOrderItem.action";
  130 +
  131 +//生成订单
  132 +static NSString *const CNOrderCreateUrl = API_Host@"/Daren/order/createOrder.action";
  133 +
  134 +//修改订单
  135 +static NSString *const CNOrderModifyUrl = API_Host@"/Daren/order/modifyOrder.action";
  136 +
  137 +//确认订单
  138 +static NSString *const CNOrderConfirmUrl = API_Host@"/Daren/order/confirmOrder.action";
  139 +
  140 +//获取订单详情
  141 +static NSString *const CNGetOrderDetailUrl = API_Host@"/Daren/order/getOrderItem.action";
  142 +
  143 +//根据订单状态获取订单列表
  144 +static NSString *const CNGetOrderListUrl = API_Host@"/Daren/order/getOrdersByStatus.action";
  145 +
  146 +//申请退款
  147 +static NSString *const CNApplyRefundUrl = API_Host@"/Daren/order/applyRefund.action";
  148 +
  149 +//删除订单
  150 +static NSString *const CNDeleteOrderUrl = API_Host@"/Daren/order/deleteOrder.action";
  151 +
  152 +//催单
  153 +static NSString *const CNRemindOrderUrl = API_Contact@"/CnliveIM/notify/remind.action";
  154 +
  155 +//确认收货
  156 +static NSString *const CNConfirmRecvUrl = API_Host@"/Daren/order/confirmRecv.action";
  157 +
  158 +//评价
  159 +static NSString *const CNCommentDarenUrl = API_Host@"/Daren/hudong/commentDaren.action";
  160 +
  161 +//退款原因
  162 +static NSString *const CNRefunfReasonUrl = API_Refund@"/json/refundReason.json";
  163 +
  164 +
  165 +#pragma mark - 发布
  166 +
  167 +//发布视频 短视频接入点播云接口
  168 +static NSString *const CNPublishVideoUrl = API_OpenApi2@"/vod_epg/svInputMamForAPP";
  169 +
  170 +//发布视频 短视频上传获取bucket接口(七牛)
  171 +static NSString *const CNUploadGetBucketUrl = API_OpenApi2@"/storage/getStorageInfo";
  172 +
  173 +//发布图片,上传鉴权接口(七牛)
  174 +static NSString *const CNUploadAuthForApp = API_OpenApi2@"/vod_epg/getUploadAuthForApp";
  175 +
  176 +//上传视频成功的回调url
  177 +static NSString *const CNStockDarenVideoCallBackUrl = API_Host@"/Daren/stock/stockDarenVideo.action";
  178 +
  179 +//发布获取上冰雪banner url
  180 +static NSString *const CNPublishGetSnowBannerUrl = API_Host@"/Daren/snow/getSnowBanner.action";
  181 +
  182 +
  183 +#pragma mark - 检验群公告敏感词
  184 +
  185 +static NSString *const CNCheckFeaturedGroup = API_Host@"/Daren/announcementCheck/checkFeaturedGroup.action";
  186 +
  187 +#pragma mark - 特色群组活动管理
  188 +//获取群组活动收费记录
  189 +static NSString *const CNActiveGroupFundsRecordsUrl = API_Host@"/Daren/groupManagement/groupFundsRecords.action";
  190 +
  191 +//获取投票详情
  192 +static NSString *const CNGetVoteMsgSourceUrl = API_Host@"/Daren/vote/getVoteMsg.action";
  193 +
  194 +//获取收费详情
  195 +static NSString *const CNQueryActivityFeeSourceUrl = API_Host@"/Daren/groupManagement/queryActivityFee.action";
  196 +
  197 +//历任群主列表
  198 +static NSString *const CNGetSuccessiveGroupListUrl = API_Host@"/Daren/groupManagement/getSuccessiveGroupList.action";
  199 +
  200 +//获取投票记录的列表
  201 +static NSString *const CNGetVotesSourceListUrl = API_Host@"/Daren/vote/getVotes.action";
  202 +
  203 +//拉起支付并做定点预处理
  204 +static NSString *const CNPayByGroupMembersUrl = API_Host@"/Daren/groupManagement/payByGroupMembers.action";
  205 +
  206 +//获取支付状态
  207 +static NSString *const CNCheckPaymentSourceUrl = API_Host@"/Daren/groupManagement/checkPayment.action";
  208 +
  209 +//投票
  210 +static NSString *const CNGroupVoteSourceUrl = API_Host@"/Daren/vote/groupVote.action";
  211 +
  212 +//删除投票
  213 +static NSString *const CNStopVoteSourceUrl = API_Host@"/Daren/vote/stopVote.action";
  214 +
  215 +//获取提现的秘钥获取
  216 +static NSString *const CNGetCurrentKeySourceUrl = API_Host@"/Daren/groupManagement/getCurrentKey.action";
  217 +
  218 +//验证秘钥的发送
  219 +static NSString *const CNSendSecretKeySourceUrl = API_Host@"/Daren/groupManagement/sendSecretKey.action";
  220 +
  221 +//秘钥的验证
  222 +static NSString *const CNGroupManagementCheckKeyUrl = API_Host@"/Daren/groupManagement/checkKey.action";
  223 +
  224 +//网++支付的预支付订单生成 & 网++ 余额支付
  225 +static NSString *const CNGroupWjjPayWjjPrePaySourceUrl = API_Host@"/Daren/wjjPay/unifiedOrder.action";
  226 +
  227 +//网++ 余额支付
  228 +static NSString *const CNGroupWjjPayWjjSourceUrl = API_Host@"/Daren/wjjPay/unifiedPay.action";
  229 +
  230 +//返回公钥&随机AESKey
  231 +static NSString *const CNGroupReturnEncryptKeyUrl = API_Host@"/Daren/wjjPay/getKey.action";
  232 +
  233 +//获取分享下载的地址
  234 +static NSString *const CNShareDownloadSourceUrl = API_Host@"/Daren/common/appDownLoadUrl.action";
  235 +
  236 +//获取分享达人主页的地址
  237 +static NSString *const CNShareDarenHomeSourceUrl = API_Host@"/Daren/common/shareDarenHomePage.action";
  238 +
  239 +//扫码获取棉花糖信息
  240 +static NSString *const CNOrderMHTSourceUrl = API_Host@"/Daren/order/addOrderMHT.action";
  241 +
  242 +//订阅号特色群群组转账状态查询
  243 +static NSString *const CNQueryTransferUrl = API_Host@"/Daren/groupManagement/getQueryTransfer.action";
  244 +
  245 +#pragma mark -
  246 +#pragma mark - 朋友圈
  247 +//发布上冰雪图文
  248 +static NSString *const CNPublishSnowUrl = API_Host@"/Daren/snow/releaseSnow.action";
  249 +
  250 +//发布朋友圈
  251 +static NSString *const CNPublishFriendsCircleUrl = API_Host@"/Daren/moment/releaseMoment.action";
  252 +// 选择圈子
  253 +static NSString *const CNGetPublishTypeListUrl = API_Host@"/Daren/publishType/getPublishTypeList.action";
  254 +
  255 +//目击者发布朋友圈
  256 +static NSString *const CNPublishWintessCircleUrl = API_Host@"/Daren/witness/releaseWitness.action";
  257 +//获取朋友圈内容
  258 +static NSString *const CNGetFriendsCircleContentUrl = API_Host@"/Daren/moment/friendMoment.action";
  259 +
  260 +//获取我的朋友圈内容(我的发布记录)
  261 +static NSString *const CNGetMyCircleContentUrl = API_Host@"/Daren/moment/myMoment.action";
  262 +
  263 +//朋友圈评论或回复
  264 +static NSString *const CNFirendsCircleCommentReplyUrl = API_Host@"/Daren/hudong/commentMoment.action";
  265 +
  266 +//删除朋友圈评论
  267 +static NSString *const CNFirendsCircleCommentDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  268 +
  269 +//删除好友时,调用接口
  270 +static NSString *const CNDeleteFriendUrl = API_Host@"/Daren/sub/deleteFriend.action";
  271 +
  272 +//删除我的朋友圈某条内容
  273 +static NSString *const CNDeleteMyMomentItemUrl = API_Host@"/Daren/moment/deleteMyMoment.action";
  274 +
  275 +//删除我的相关收藏
  276 +static NSString *const CNDeleteMyCollectionItemUrl = API_Host@"/Daren/stock/collection.action";
  277 +
  278 +//读取朋友圈某条动态的评论(含回复)
  279 +static NSString *const CNGetMomentAllCommontUrl = API_OpenApi2@"/commentServices/services/commentForChat/readAll";
  280 +
  281 +//读取朋友圈某条动态的点赞列表
  282 +static NSString *const CNGetMomentAllFavoriteUrl = API_OpenApi2@"/support/readAll";
  283 +
  284 +//读取朋友圈某条动态的点赞列表(新接口)
  285 +static NSString *const CNGetMomentAllNEWFavoriteUrl = API_OpenApi2@"/support/loadSupport";
  286 +
  287 +//朋友圈某条动态点赞
  288 +static NSString *const CNFavoriteMomentUrl = API_Host@"/Daren/moment/praiseMoment.action";
  289 +
  290 +////获取朋友圈新消息数量
  291 +//static NSString *const CNGetMomentNewMsgCountUrl = API_Host@"/Daren/moment/getNewMsg.action";
  292 +
  293 +//获取朋友圈新消息详细
  294 +static NSString *const CNGetMomentNewMsgListUrl = API_Host@"/Daren/moment/getNewMsgList.action";
  295 +
  296 +//获取朋友圈记录详情
  297 +static NSString *const CNGetMomentDetailUrl = API_Host@"/Daren/moment/getMomentDetail.action";
  298 +
  299 +//清空新消息
  300 +static NSString *const CNDeleteNewMsgUrl = API_Host@"/Daren/moment/deleteNewMsg.action";
  301 +
  302 +//个人资料相册
  303 +static NSString *const CNLookUpMyMsgCommontUrl = API_Host@"/Daren/moment/lookUpMyMsg.action";
  304 +
  305 +#pragma mark -
  306 +#pragma mark - 分类
  307 +//分类频道(旧)
  308 +//static NSString *const CNCategoryGetChannelUrl = API_Host@"/Daren/center/getChannel.action";
  309 +//分类频道(新)
  310 +static NSString *const CNCategoryGetChannelUrl = API_Classify@"/contentApi/app";
  311 +//分类首页(旧 18.5.28)
  312 +//static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/center/getCenterPage.action";
  313 +//分类首页(新)
  314 +static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/classify/getNewCenterPage.action";
  315 +
  316 +//分类次级页面-达人列表
  317 +static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/classify/getNewDarensByCategory.action";
  318 +//static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/center/getDarensByCategory.action";
  319 +
  320 +//分类次级页面-已关注达人列表
  321 +static NSString *const CNGetDarensAlreadyUrl = API_Host@"/Daren/classify/getDarenList.action";
  322 +//分类次级页面-未关注达人列表
  323 +static NSString *const CNGetDarensNeverUrl = API_Host@"/Daren/classify/getUnFansOrDarenBean.action";
  324 +// 关注达人
  325 +static NSString *const CNAddDarenSubUrl = API_Host@"/Daren/sub/addDarenSub.action";
  326 +// 取消关注
  327 +static NSString *const CNCancelDarenSubUrl = API_Host@"/Daren/sub/cancelDarenSub.action";
  328 +//分类-搜索
  329 +static NSString *const CNCategorySearchDarenUrl = API_Host@"/Daren/search/searchDaren.action";
  330 +//点播-获取评论列表
  331 +static NSString *const CNGetCommentListUrl = API_OpenApi2@"/commentServices/services/commentForHdBySpId/loadComment";
  332 +//点播-评论一条节目
  333 +static NSString *const CNCommentProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/insertComment";
  334 +//点播-点赞一条节目
  335 +static NSString *const CNPraiseProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/praiseComment";
  336 +
  337 +#pragma mark - 听见中国
  338 +//获取音频播放详情
  339 +static NSString *const CNAudioPlayerDetailUrl = API_Classify@"/playApi/play";
  340 +//获取音频播放列表
  341 +static NSString *const CNAlbumAudioListUrl = API_Classify@"/contentApi/albumAudioList";
  342 +//播放进度回调
  343 +static NSString *const CNAudioRecordScheduleUrl = API_Classify@"/recordApi/end";
  344 +//历史记录列表
  345 +static NSString *const CNAudioPastRecordsUrl = API_Classify@"/recordApi/getRecords";
  346 +//删除历史记录列表
  347 +static NSString *const CNAudioDeletePastRecordsUrl = API_Classify@"/recordApi/delete";
  348 +// 简介列表
  349 +static NSString *const CNAlbumMsgUrl = API_Classify@"/contentApi/getAlbumMsg";
  350 +//节目列表
  351 +static NSString *const CNAlbumListUrl = API_Classify@"/contentApi/albumAudioList";
  352 +#pragma mark -
  353 +#pragma mark - 点播
  354 +//视频点播
  355 +static NSString *const CNVideoDemandUrl = API_Classify@"/playApi/play";
  356 +//查看全部
  357 +static NSString *const CNLookAtAllUrl = API_Classify@"/playApi/moreList";
  358 +
  359 +static NSString *const CNCommentsListUrl = API_OpenApi2@"/commentServices/services/commentForChat/loadComment";
  360 +static NSString *const CNCommentsAddUrl = API_OpenApi2@"/commentServices/services/commentForChat/insert";
  361 +static NSString *const CNCommentsDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  362 +
  363 +
  364 +//帮助与反馈上传反馈信息&图片
  365 +static NSString *const CNUpdateFeedbackUrl = API_Host@"/Daren/feedback/collectFeedback.action";
  366 +//检查扫描结果是否有效
  367 +static NSString *const CNCheckQrCodeUrl = API_Host@"/Daren/qrcode/checkQrCodeUrl.action";
  368 +
  369 +// Native 分类
  370 +// 获取所有频道列表
  371 +static NSString *const CNAllChannelList = @"http://intertv.cnlive.com/zgw/api/channellist";
  372 +//App配置信息
  373 +static NSString *const AppStart = @"http://intertv.cnlive.com/zgw/api/appstart";
  374 +
  375 +#pragma mark -
  376 +#pragma mark - 申请目击者
  377 +// 目击者身份信息申请
  378 +static NSString *const CNApplyWitnessUrl = API_Host@"/Daren/witness/applyWitness.action";
  379 +// 目击者身份校验
  380 +static NSString *const CNCheckWitnessUrl = API_Host@"/Daren/witness/checkWitness.action";
  381 +//获取订阅号主页内容
  382 +static NSString *const CNGetSpHomePageInfoUrl = API_Classify"/contentApi/getSpInfo";
  383 +//获取订阅号分页内容
  384 +static NSString *const CNGetSpContentListUrl = API_Classify"/contentApi/getSpContentList";
  385 +//关注订阅号
  386 +static NSString *const CNGetSpAddFollowsUrl = API_Host@"/Daren/group/addFollows.action";
  387 +//取消关注订阅号
  388 +static NSString *const CNGetSpUserCancelFollowUrl = API_Host@"/Daren/group/userCancelFollow.action";
  389 +//加入群聊
  390 +static NSString *const CNGetSpUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  391 +//获取全部粉丝
  392 +static NSString *const CNGetSPAllFansUrl = API_Host@"/Daren/group/getFans.action";
  393 +//订阅号加入群聊
  394 +static NSString *const CNGetUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  395 +#pragma mark -
  396 +#pragma mark - 我的
  397 +// 用户uid检测达人状态
  398 +static NSString *const CNCheckDarenUrl = API_Host@"/Daren/member/checkDaren.action";
  399 +// 获取我的余额
  400 +static NSString *const CNGetBalanceUrl = API_Host@"/Daren/member/getBalance.action";
  401 +// 获取交易记录
  402 +static NSString *const CNGetTradingRecordUrl = API_Host@"/Daren/transaction/getTransactionRecord.action";
  403 +// 获取与商户的交易记录
  404 +static NSString *const CNViewTransferRecordUrl = API_Host@"/Daren/groupManagement/viewTransferRecord.action";
  405 +// 交易记录详情
  406 +static NSString *const CNGetRecordSourceMsgUrl = API_Host@"/Daren/transaction/getRecordSourceDetail.action";
  407 +// 是否有支付密码
  408 +static NSString *const CNPasswordIsExistingUrl = API_Host@"/Daren/wjjPay/passwordIsExisting.action";
  409 +// 设置支付密码
  410 +static NSString *const CNSetPasswordUrl = API_Host@"/Daren/wjjPay/setPassword.action";
  411 +// 更改密码时发送验证码
  412 +static NSString *const CNSendSMSSetPasswordUrl = API_Host@"/Daren/sms/sendSMS.action";
  413 +// 更改密码时验证验证码
  414 +static NSString *const CNCheckVerifyCodeSetPasswordUrl = API_Host@"/Daren/sms/checkVerifyCode.action";
  415 +// 查看是否允许好友查看生活圈的状态
  416 +static NSString *const CNIsAllowFindStrangerSwitchUrl = API_Host@"/Daren/moment/findStrangerSwitch.action";
  417 +// 切换是否允许好友查看生活圈
  418 +static NSString *const CNSwitchAllowStrangerUrl = API_Host@"/Daren/moment/strangerSwitch.action";
  419 +
  420 +#pragma mark - 积分
  421 +static NSString *const CNIntegralGetTasksUrl = API_Host@"/Daren/integral/getTasks.action";//任务列表
  422 +static NSString *const CNIntegralAddUrl = API_Host@"/Daren/integral/addTask.action";//增加积分
  423 +static NSString *const CNIntegralDetailsUrl = API_Host@"/Daren/integral/integralRecord.action";//积分明细
  424 +static NSString *const CNIntegralSignInUrl = API_Host@"/Daren/integral/checkIn.action";//签到
  425 +static NSString *const CNCancellationUrl = API_Host@"/Daren/common/cancellationAccount.action";//注销账号
  426 +
  427 +#pragma mark - 隐私
  428 +static NSString *const CNPrivacyNoLetHimSeeListUrl = API_Host@"/Daren/moment/getDoNotletFsids.action";//不让他看列表
  429 +static NSString *const CNPrivacyNoSeeHimListUrl = API_Host@"/Daren/moment/getNoLookFsids.action";//不看他列表
  430 +static NSString *const CNPrivacyNoLetHimSeeAddUrl = API_Host@"/Daren/moment/addDoNotletFsids.action";//不让他看增加
  431 +static NSString *const CNPrivacyNoSeeHimAddUrl = API_Host@"/Daren/moment/addNoLookFsids.action";//不看他增加
  432 +
  433 +#pragma mark - 订阅号
  434 +//选择你感兴趣的内容
  435 +static NSString *const CNInterestedContentUrl = API_Host@"/Daren/group/getSpTags.action";
  436 +//推荐订阅号
  437 +static NSString *const CNRecommendedSubscribeUrl = API_Host@"/Daren/group/getSubscriptionNumbers.action";
  438 +//推荐订阅号完成
  439 +static NSString *const CNRecommendedSubscribeFinishUrl = API_Host@"/Daren/group/userFollowAddGroup.action";
  440 +//全部订阅号(不传sid)
  441 +static NSString *const CNAllSubscribeUrl = API_Host@"/Daren/group/getMoreSubscriptionNumbers.action";
  442 +//全部订阅号(传sid)
  443 +static NSString *const CNAllSubscribeSidUrl = API_Host@"/Daren/group/getCategorySubscriptionNumbers.action";
  444 +//关注订阅号
  445 +static NSString *const CNAddAttentionSubscribeUrl = API_Host@"/Daren/group/addFollows.action";
  446 +//取消关注订阅号
  447 +static NSString *const CNCancelAttentionSubscribeUrl = API_Host@"/Daren/group/userCancelFollow.action";
  448 +//加入群聊订阅号
  449 +static NSString *const CNJumpGroupSubscribeUrl = API_Host@"/Daren/group/userAddGroup.action";
  450 +//设置默认订阅号
  451 +static NSString *const CNSubscribeDefaultAddFollowsUrl = API_Host@"/Daren/group/defaultAddFollows.action";
  452 +
  453 +#pragma mark - App配置信息
  454 +// 获取最新版本信息
  455 +static NSString *const CNGetNewestVersionUrl = API_Host@"/Daren/common/getNewestVersion.action";
  456 +// 获取App配置信息(统一)
  457 +static NSString *const CNGetCommonMsgUrl = API_Host@"/Daren/common/getCommonMsg.action";
  458 +
  459 +#pragma mark 活动投票
  460 +//创建活动收费
  461 +static NSString *const CNAddGroupCharge = API_Host@"/Daren/groupManagement/addGroupCharge.action";
  462 +//邀请加群
  463 +static NSString *const CNInvitationAddgroup = API_Host@"/Daren/groupManagement/invitationAddGroup.action";
  464 +//获取通知列表
  465 +static NSString *const CNGetnoticesubs = API_Host@"/Daren/sub/getNoticeSubs.action";
  466 +// 同意加入群
  467 +static NSString *const CNAgreeAddgroup = API_Contact@"/CnliveIM/notify/addGroup.action"; //@"https://wjjim.cnlive.com/CnliveIM/notify/addGroup.action"
  468 +// 创建投票
  469 +static NSString *const CNAddvote = API_Host@"/Daren/vote/addVote.action";
  470 +//储存历任群主,再特色群创建和转让群主的时候创建
  471 +static NSString *const CNSavesuccessivegroup = API_Host@"/Daren/groupManagement/saveSuccessiveGroup.action";
  472 +
  473 +static NSString *const CNGetAgreementH5Url = API_Refund@"/json/wjj_user_terms.json";
  474 +
  475 +static NSString *const CNWeChatPayUrl = API_ThirdPay@"/Daren/pay/notifyWeChatPay.action";
  476 +
  477 +static NSString *const CNAliPayUrl = API_ThirdPay@"/Daren/pay/notifyAliPay.action";
  478 +
  479 +static NSString *const CNUnionPayUrl = API_ThirdPay@"/Daren/pay/notifyUnionPay.action";
  480 +
  481 +static NSString *const CNJSFYNotifyUrl = API_ThirdPay@"/Daren/pay/jsfyPayCallback.action";
  482 +
  483 +//获取特色群限制人数
  484 +static NSString *const CNGroupMemberLimit = @"https://wjj.ys1.cnliveimg.com/json/GroupMemberLimit.json";
  485 +
  486 +#pragma mark -
  487 +#pragma mark - 获取观察者相关
  488 +//获取观察者相关数据
  489 +static NSString *const CNWitnessPublishContent = API_Host@"/Daren/witness/getWitnessPublishContent.action";
  490 +
  491 +//删除观察者相关数据
  492 +static NSString *const CNDeleteOrUpdateWitnessURL = API_Host@"/Daren/witness/deleteOrUpdateWitnessPublish.action";
  493 +
  494 +#pragma mark 直播
  495 +
  496 +//取得相关视频
  497 +static NSString *const CNPlayerBackOrRelatedUrl = API_Classify@"/contentApi/playList";
  498 +
  499 +//取得直播数据
  500 +static NSString *const CNPlayerDetailUrl = API_Classify@"/playApi/play";
  501 +
  502 +//预约
  503 +static NSString *const CNPlayerOrderUrl = API_Classify@"/contentApi/liveAppoint";
  504 +
  505 +//获取直播活动播放信息4App
  506 +static NSString *const CNLiveActivityPlayInfo4App = API_OpenApi2@"/live_epg/getLiveActivityPlayInfo4App";
  507 +//获取直播间详情
  508 +static NSString *const CNLiveRoomInfo = API_Classify@"/playApi/play";
  509 +
  510 +static NSString *const CNNewLiveInfoWeb = API_Classify@"/contentApi/";
  511 +
  512 +//获取点播播放信息
  513 +static NSString *const CNLiveGetVodRates = API_OpenApi2@"/vod_epg/getRates";
  514 +
  515 +//活动举报
  516 +static NSString *const CNLiveActivityReportContent = API_Report@"/CnliveMobile/json/report.action";
  517 +
  518 +//订阅号关注
  519 +static NSString *const CNLiveSPAddFollow = API_Host@"/Daren/group/addFollows.action";
  520 +
  521 +//取消订阅号关注
  522 +static NSString *const CNLiveSPCancelFollow = API_Host@"/Daren/group/userCancelFollow.action";
  523 +
  524 +//订阅号取消管制
  525 +
  526 +
  527 +#pragma mark 黑名单
  528 +//校验黑名单
  529 +static NSString *const CNCheckBlackUser = API_Contact@"/CnliveIM/notify/checkBlackList.action";
  530 +//添加黑名单
  531 +static NSString *const CNBlackListAdd = API_Host@"/Daren/blackList/blackListAdd.action";
  532 +//删除黑名单
  533 +static NSString *const CNBlackListDelete = API_Host @"/Daren/blackList/blackListDelete.action";
  534 +//黑名单列表
  535 +static NSString *const CNBlackList = API_Host@"/Daren/blackList/blackListGet.action";
  536 +
  537 +#pragma mark 好友生活圈观看权限设置
  538 +//增加不让他人看
  539 +static NSString *const CNAdddonotletfsids = API_Host@"/Daren/moment/addDoNotletFsids.action";
  540 +//取消不让他人看
  541 +static NSString *const CNDeldonotletfsids = API_Host@"/Daren/moment/delDoNotletFsids.action";
  542 +//不让他看人列表
  543 +static NSString *const CNGetdonotletfsids = API_Host@"/Daren/moment/getDoNotletFsids.action";
  544 +
  545 +//增加不看他的
  546 +static NSString *const CNAddnolookfsids = API_Host@"/Daren/moment/addNoLookFsids.action";
  547 +//取消不看他的
  548 +static NSString *const CNDelnolookfsids = API_Host@"/Daren/moment/delNoLookFsids.action";
  549 +//不看他的列表
  550 +static NSString *const CNGetnolookfsids = API_Host@"/Daren/moment/getNoLookFsids.action";
  551 +//
  552 +////////////////////////////////////////////////////////
  553 +//////////// 数据库---表名
  554 +////////////////////////////////////////////////////////
  555 +
  556 +//达人个人主页表名
  557 +static NSString *const DarenHomeRealm = @"DarenHome";
  558 +
  559 +//达人列表表名
  560 +static NSString *const DarenSubsRealm = @"DarenSubs";
  561 +
  562 +//生活列表表名
  563 +static NSString *const LifeSubsRealm = @"LifeSubs";
  564 +
  565 +//系统订单列表表名
  566 +static NSString *const LifeHomeRealm = @"LifeHome";
  567 +
  568 +//朋友圈新消息表名
  569 +static NSString *const MomentNewMsgRealm = @"MomentNewMsg";
  570 +
  571 +#endif /* NetworkAPIs_h */
CNLiveEnvironmentConfiguration/Classes/ReleaseInHouse/CNEnvironmentHeader.h 0 → 100644
  1 +//
  2 +// CNEnvironmentHeader.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by 张旭 on 2018/5/30.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef CNEnvironmentHeader_h
  10 +#define CNEnvironmentHeader_h
  11 +
  12 +/*
  13 + *网家家环境配置文件
  14 +*/
  15 +
  16 +// App Store 中 AppID 用于跳转 App Store 下载/评分
  17 +#define AppStoreAppId @"1337575478"
  18 +
  19 +// 请求查询app在App Store的上架信息
  20 +#define AppStoreAppInfo @"https://itunes.apple.com/lookup?id=1337575478"
  21 +
  22 +//// h5新闻详情中分享使用到的图片地址
  23 +//#define netAddShareImgUrl WjjH5_Host@"/static/logo.png"
  24 +//#define WjjH5Short_Host @"http://dwz.cnlive.com"
  25 +
  26 +// 正式版--测试环境com.cnlive.CNLiveNetAdd.debug 网家家测试版
  27 +// 正式版--正式环境com.cnlive.CNLiveNetAdd 网家家正式版
  28 +// 企业版--测试环境com.cnlive.CNLiveNetAddInHouse.debug 网家家测试企版
  29 +// 企业版--正式环境com.cnlive.CNLiveNetAddInHouse 网家家内测版
  30 +
  31 +#define ShowGuideView @"no" // yes:显示欢迎页 no:不显示欢迎页
  32 +
  33 +#define Environment_ON 1 // 1:正式环境平台 0:测试环境平台
  34 +
  35 +#if Environment_ON
  36 +
  37 +#pragma mark - 正式环境
  38 +//正式环境平台配置
  39 +//IMSDK相关的配置
  40 +#define kWXAccount @"wjj_app"
  41 +#define kSdkAppId @"1400051680"
  42 +#define kSdkAccountType @"19645"
  43 +
  44 +#ifndef CNLiveNetAddUrlSchems
  45 +#define CNLiveNetAddUrlSchems @"CNLiveNetAddUrlSchems" // 支付宝支付Schems
  46 +#endif
  47 +
  48 +#ifndef CNLiveNetAddUnionPaySchems
  49 +#define CNLiveNetAddUnionPaySchems @"CNLiveNetAddUnionPaySchems" // 银联支付Schems
  50 +#endif
  51 +
  52 +#define CNLiveNewAddDownloadUrl @"http://apiwjj.cnlive.com/download/index.html"
  53 +#define ShareDarenHomeUrl @"http://apiwjj.cnlive.com/daren/download.html"
  54 +#define WjjH5_Host @"http://wjjh5.cnlive.com"
  55 +#define WjjH5_VideoChina WjjH5_Host@"/cnnews.html"
  56 +#define WjjH5_NumProduct WjjH5_Host@"/cndr.html"
  57 +
  58 +#define API_Host @"https://apiwjj.cnlive.com"
  59 +
  60 +#define API_Contact @"https://wjjim.cnlive.com"
  61 +#define API_Refund @"https://wjj.ys1.cnliveimg.com"
  62 +#define API_Report @"https://mobile.cnlive.com"
  63 +#define API_ThirdPay API_Host
  64 +#define API_OpenApi2 @"https://api.cnlive.com/open/api2"
  65 +#define API_Classify @"http://cms.cnlive.com:8768"
  66 +
  67 +#define WjjLive_Host @"http://wjjh5.cnlive.com"
  68 +
  69 +#define TIM_GetTokenUrl API_OpenApi2@"/im_chat/generateUserSign"
  70 +
  71 +// 网++默认头像地址
  72 +#define CNLiveNetAddDefaultHead API_Refund@"/admin/test/head.png"
  73 +
  74 +#define API_BucketName @"mam-wjj-769"
  75 +#define API_PhotoUrl @"http://wjj.ys2.cnliveimg.com/" // 还不知道
  76 +#define MultipleCategory 366
  77 +#define WitnessMultipleCategory 370
  78 +
  79 +#pragma mark - 正式个人/企业开关
  80 +#define IPA_APPSTORE 0 ////1: App Store版 0:企业版
  81 +
  82 +#if IPA_APPSTORE
  83 +// 正式个人版
  84 +////////////////////////////////////////////////////////
  85 +//////////// AppConfig
  86 +////////////////////////////////////////////////////////
  87 +
  88 +//正式版 com.cnlive.CNLiveNetAdd
  89 +#ifndef AppId
  90 +#define AppId @"769_jetj7bq525"
  91 +#endif
  92 +#ifndef APPKey
  93 +#define APPKey @"0d57b045ec0c3988a682d94c644e66b9b8e0d2b8ef937d"
  94 +#endif
  95 +#ifndef AppSecret
  96 +#define AppSecret @"275e8dc29274a1186d82f65bc607c231d02bcb3bfd8976"
  97 +#define DisplayName @"网家家"
  98 +#endif
  99 +
  100 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAdd"
  101 +
  102 +////////////////////////////////////////////////////////
  103 +//////////// IM推送证书相关
  104 +////////////////////////////////////////////////////////
  105 +#if DEBUG
  106 +#define IM_Cer_busiId 12452 //7307已过期
  107 +#else
  108 +#define IM_Cer_busiId 12453 //7308已过期
  109 +#endif
  110 +
  111 +////////////////////////////////////////////////////////
  112 +//////////// 高德地图Key
  113 +////////////////////////////////////////////////////////
  114 +#define GDApiKey @"5a0e2a559b987e67d5b0c13490adde02"
  115 +
  116 +////////////////////////////////////////////////////////
  117 +//////////// 百度身份证识别
  118 +////////////////////////////////////////////////////////
  119 +#define BDAppId @"14380860"
  120 +#define BDAppKey @"4bX1eK7SiCL461QBnRKilowc"
  121 +#define BDSecret @"BTzXLoPbUjlLeOM1nHnfOuTB9q18YZVq"
  122 +
  123 +////////////////////////////////////////////////////////
  124 +//////////// 听云
  125 +////////////////////////////////////////////////////////
  126 +/*听云AppKey*/ //URL Scheme: tingyun.33700
  127 +static NSString *const CNLiveTingYunAppKey = @"37c9ea3f439145269e5cffe095466b17";
  128 +#else
  129 +// 正式企业版
  130 +// 企业版 com.cnlive.CNLiveNetAddInHouse
  131 +#ifndef AppId
  132 +#define AppId @"769_jetja50p18"
  133 +#endif
  134 +#ifndef APPKey
  135 +#define APPKey @"ad101b9152817a79b5c33c3617b96ff91385096ff3b4ba"
  136 +#endif
  137 +#ifndef AppSecret
  138 +#define AppSecret @"6a324a475a8b9ef903139cb2626fdab6bf4362d6d47c83"
  139 +#define DisplayName @"网家家"
  140 +#endif
  141 +
  142 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse"
  143 +
  144 +//企业证书id
  145 +#if DEBUG
  146 +#define IM_Cer_busiId 7346
  147 +#else
  148 +#define IM_Cer_busiId 7347
  149 +#endif
  150 +
  151 +////////////////////////////////////////////////////////
  152 +//////////// 高德地图Key
  153 +////////////////////////////////////////////////////////
  154 +#define GDApiKey @"84d765606a54635aec2648f663d4a5ed"
  155 +
  156 +////////////////////////////////////////////////////////
  157 +//////////// 百度身份证识别
  158 +////////////////////////////////////////////////////////
  159 +#define BDAppId @"14380872"
  160 +#define BDAppKey @"ibl8vbKkPVYBw5IOvR8tVGGo"
  161 +#define BDSecret @"QEd6n1qruIGG8AYkyLyqepksO2uUe0GK"
  162 +
  163 +////////////////////////////////////////////////////////
  164 +//////////// 听云
  165 +////////////////////////////////////////////////////////
  166 +/*听云AppKey*/ //URL Scheme: tingyun.33699
  167 +static NSString *const CNLiveTingYunAppKey = @"782d9a70547a4e3f91cb328b122bb85c";
  168 +
  169 +#endif
  170 +
  171 +//////////////////////////////////////
  172 +///////////////// 正式平台
  173 +//////////////////////////////////////
  174 +
  175 +/*微信相关参数*/
  176 +static NSString *const CNLiveWeiChatAppId_Share = @"wxed528fc749b7ee88";
  177 +static NSString *const CNLiveWeiChatAppSecret_Share = @"729c3d3055fe336bcdef7020c2548e89";
  178 +
  179 +/*腾讯相关参数*/
  180 +static NSString *const CNLiveQQShareAppId_Share = @"1106691520";
  181 +static NSString *const CNLiveQQShareAppSecret_Share = @"kLZ8CglGFjzrJFan";
  182 +
  183 +/*shareSDK相关参数*/
  184 +static NSString *const CNLiveShareSDKAppId_Share = @"24e4abeaa92d8";
  185 +static NSString *const CNLiveShareSDKAppSecret_Share = @"da94a6f881d404092c9a7108e4470e8f";
  186 +
  187 +#else
  188 +
  189 +#pragma mark - 测试环境
  190 +////////////////////////////////////////////////////////////
  191 +// 测试环境平台配置
  192 +// IMSDK相关的配置
  193 +#define kWXAccount @"wjj_app_test"
  194 +#define kSdkAppId @"1400052101"
  195 +#define kSdkAccountType @"27313"
  196 +
  197 +#ifndef CNLiveNetAddUrlSchems
  198 +#define CNLiveNetAddUrlSchems @"CNLiveNetAddTestUrlSchems" // 支付宝支付Schems
  199 +#endif
  200 +#ifndef CNLiveNetAddUnionPaySchems
  201 +#define CNLiveNetAddUnionPaySchems @"CNLiveNetAddTestUnionPaySchems" // 银联支付Schems
  202 +#endif
  203 +
  204 +#define CNLiveNewAddDownloadUrl @"https://fir.im/layf"
  205 +#define ShareDarenHomeUrl @"http://apiwjj.cnlive.com/download/index.html"
  206 +#define WjjH5_Host @"http://wjjh5test.cnlive.com"
  207 +#define WjjH5_VideoChina WjjH5_Host@"/cnnews.html"
  208 +#define WjjH5_NumProduct WjjH5_Host@"/cndr.html"
  209 +
  210 +#define API_Host @"https://apiwjjtest.cnlive.com"
  211 +#define API_Contact @"https://imtest.cnlive.com"
  212 +#define API_OpenApi2 @"https://api.cnlive.com/open/api2"
  213 +#define API_Refund @"https://wjj.ys1.cnliveimg.com"
  214 +#define API_Report @"https://mobile.cnlive.com"
  215 +#define API_ThirdPay API_Host
  216 +#define API_BucketName @"mam-wjjtest-802"
  217 +#define API_PhotoUrl @"http://wjjtest.ys2.cnliveimg.com/"
  218 +#define MultipleCategory 371
  219 +#define WitnessMultipleCategory 375
  220 +#define API_Classify @"http://cmstest.cnlive.com:8768"
  221 +#define WjjLive_Host @"http://wjjh5test.cnlive.com"
  222 +
  223 +#define TIM_GetTokenUrl API_Contact@"/CnliveIM/notify/generateUserSign.action"
  224 +// 网++默认头像地址
  225 +#define CNLiveNetAddDefaultHead API_Refund@"/admin/test/head.png"
  226 +
  227 +/*微信相关参数*/
  228 +static NSString *const CNLiveWeiChatAppId_Share = @"wx9b7f9443a8ccf15a";
  229 +static NSString *const CNLiveWeiChatAppSecret_Share = @"8d9970bf2901411d8dd2bffb344f147e";
  230 +
  231 +/*腾讯相关参数*/
  232 +static NSString *const CNLiveQQShareAppId_Share = @"1106970445";
  233 +static NSString *const CNLiveQQShareAppSecret_Share = @"4hxuJ1HIes4i4hqT";
  234 +
  235 +/*shareSDK相关参数*/
  236 +static NSString *const CNLiveShareSDKAppId_Share = @"26192e9007048";
  237 +static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a716340363c7";
  238 +
  239 +
  240 +#pragma mark - 测试个人/企业开关
  241 +#define IPA_APPSTORE 1 ////1: 个人版 0:企业版
  242 +
  243 +#if IPA_APPSTORE
  244 +//测试个人版
  245 +////////////////////////////////////////////////////////
  246 +//////////// AppConfig
  247 +////////////////////////////////////////////////////////
  248 +//个人版 com.cnlive.CNLiveNetAdd.debug
  249 +#ifndef AppId
  250 +#define AppId @"802_jhlqbq4475"
  251 +#endif
  252 +#ifndef APPKey
  253 +#define APPKey @"d25cf0dce30e7d7ddc7c857b85ab0dde670d491fc2ffe4"
  254 +#endif
  255 +#ifndef AppSecret
  256 +#define AppSecret @"b9064cfe0a030b8b20c061fc0ee3c16acce7757874b7a2"
  257 +#define DisplayName @"网家家测试"
  258 +#endif
  259 +
  260 +
  261 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAdd.debug"
  262 +
  263 +////////////////////////////////////////////////////////
  264 +//////////// IM推送证书相关
  265 +////////////////////////////////////////////////////////
  266 +#if DEBUG
  267 +#define IM_Cer_busiId 12450 //9246已过期
  268 +#else
  269 +#define IM_Cer_busiId 12451 //9247已过期
  270 +#endif
  271 +
  272 +////////////////////////////////////////////////////////
  273 +//////////// 高德地图Key
  274 +////////////////////////////////////////////////////////
  275 +#define GDApiKey @"4b15525f4265edfed8dce1d02f08a893"
  276 +
  277 +////////////////////////////////////////////////////////
  278 +//////////// 百度身份证识别
  279 +////////////////////////////////////////////////////////
  280 +#define BDAppId @"14435697"
  281 +#define BDAppKey @"3LqIXy2AtXxrxyFM8N73QGYN"
  282 +#define BDSecret @"EKZxZza8purqGHOmngkMi7awtZkm0lOW"
  283 +
  284 +////////////////////////////////////////////////////////
  285 +//////////// 听云
  286 +////////////////////////////////////////////////////////
  287 +/*听云AppKey*/ //URL Scheme: tingyun.33185
  288 +static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352";
  289 +
  290 +#else
  291 +//测试企业版
  292 +//企业版 com.cnlive.CNLiveNetAddInHouse.debug
  293 +#ifndef AppId
  294 +#define AppId @"802_jhbqccxw08"
  295 +#endif
  296 +#ifndef APPKey
  297 +#define APPKey @"9c5619e9be747bb3b925dd215ca5923d86f12c09b9394f"
  298 +#endif
  299 +#ifndef AppSecret
  300 +#define AppSecret @"1e6380cb347255e777f72b5aa60f41daa68443a132aaea"
  301 +#define DisplayName @"网家家测试版"
  302 +#endif
  303 +
  304 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse.debug"
  305 +
  306 +//企业证书id
  307 +#if DEBUG
  308 +#define IM_Cer_busiId 9204
  309 +#else
  310 +#define IM_Cer_busiId 9205
  311 +#endif
  312 +
  313 +////////////////////////////////////////////////////////
  314 +//////////// 高德地图Key
  315 +////////////////////////////////////////////////////////
  316 +#define GDApiKey @"f4459435f1c756d2efedc6ceec12be63"
  317 +
  318 +////////////////////////////////////////////////////////
  319 +//////////// 百度身份证识别
  320 +////////////////////////////////////////////////////////
  321 +#define BDAppId @"14435716"
  322 +#define BDAppKey @"4foSD6VBILQ61olzmVAFEVGZ"
  323 +#define BDSecret @"VEuz92EVrmEVrrgTZKxYo4ApUkol7Ptk"
  324 +
  325 +////////////////////////////////////////////////////////
  326 +//////////// 听云
  327 +////////////////////////////////////////////////////////
  328 +/*听云AppKey*/ //URL Scheme: tingyun.33185
  329 +static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352";
  330 +
  331 +#endif
  332 +
  333 +#endif
  334 +
  335 +
  336 +#endif /* CNEnvironmentHeader_h */
CNLiveEnvironmentConfiguration/Classes/ReleaseInHouse/NetworkAPIs.h 0 → 100644
  1 +//
  2 +// NetworkAPIs.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by iOS on 2018/1/24.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef NetworkAPIs_h
  10 +#define NetworkAPIs_h
  11 +
  12 +//上传手机通讯录和 生成订单二维码时,DES加密key
  13 +#define kUploadContactsKey @"cnliveIm"
  14 +
  15 +#define iUploadContacts API_Contact@"/CnliveIM/notify/uploadContacts.action"
  16 +//其他投诉
  17 +static NSString *const CNLiveCNReporthtml = WjjH5_Host@"/cnReport.html";
  18 +
  19 +//特色群活动必要说明
  20 +static NSString *const CNActivityManageUrl = API_Refund@"/term/ActivityManagement.html";
  21 +
  22 +//特色群投票必要说明
  23 +static NSString *const CNVoteManageUrl = API_Refund@"/term/VoteManagement.html";
  24 +
  25 +//订阅号特色群活动必要说明
  26 +static NSString *const CNActivityManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=hdgl";
  27 +
  28 +//订阅号特色群投票必要说明
  29 +static NSString *const CNVoteManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=tp";
  30 +
  31 +//获取生活号列表
  32 +static NSString *const CNGetLifeSubsUrl = API_Host@"/Daren/sub/getLifeSubs.action";
  33 +
  34 +//获取达人号列表
  35 +static NSString *const CNGetDarenSubsUrl = API_Host @"/Daren/sub/getDarenSubs.action";
  36 +
  37 +//达人号列表删除某达人
  38 +static NSString *const CNDarenSubsDeleteDarenUrl = API_Host@"/Daren/sub/deleteDarenSubs.action";
  39 +
  40 +//添加某个收藏
  41 +static NSString *const CNDarenSubsCollectionUrl = API_Host@"/Daren/stock/collection.action";
  42 +
  43 +//收藏界面删除某个收藏
  44 +static NSString *const CNDarenSubsDeleteCollectionUrl = API_Host@"/Daren/stock/deleteCollection.action";
  45 +
  46 +//达人主页
  47 +static NSString *const CNDarenHomeUrl = API_Host@"/Daren/sub/getDarenHome.action";
  48 +
  49 +//获取收藏结果详情
  50 +static NSString *const CNDarenCollectListDataSourceUrl = API_Host@"/Daren/stock/getCollectionList.action";
  51 +
  52 +//生活号主页
  53 +static NSString *const CNLifeHomeUrl = API_Host@"/Daren/sub/getLifeHome.action";
  54 +
  55 +//删除生活号
  56 +static NSString *const CNLiveLifeDeleteUrl = API_Host@"/Daren/sub/deleteLifeSubs.action";
  57 +
  58 +//通过手机号查找好友
  59 +static NSString *const CNSearchByPhoneNumUrl = API_Contact@"/CnliveIM/notify/searchByPhoneNumber.action";
  60 +
  61 +
  62 +//获取已关注的达人列表
  63 +static NSString *const CNGetDarensUrl = API_Host@"/Daren/sub/getDarens.action";
  64 +
  65 +//获取达人的粉丝列表
  66 +static NSString *const CNGetFansUrl = API_Host@"/Daren/sub/getFans.action";
  67 +
  68 +//评价列表
  69 +static NSString *const CNGetDarenCommentUrl = API_Host@"/Daren/hudong/getDarenComment.action";
  70 +
  71 +//获取达人相关信息
  72 +static NSString *const CNGetDarenByIdUrl = API_Host@"/Daren/member/getDarenById.action";
  73 +
  74 +#pragma mark -
  75 +#pragma mark - 定义消息
  76 +//发送自定义消息
  77 +static NSString *const CNFriendshipVerifyUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  78 +//音视频自定义消息
  79 +static NSString *const CNVideoOrAudioUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  80 +
  81 +//音视频取得房间号
  82 +static NSString *const CNVideoOrAudioGetRoomID = API_Host@"/Daren/common/getRoomId.action";
  83 +
  84 +//发送文本消息
  85 +static NSString *const CNTextMsgPushUrl = API_Contact@"/CnliveIM/notify/textMsgPush.action";
  86 +
  87 +//生成二维码
  88 +static NSString *const CNGenOrResetCodeUrl = API_Host@"/Daren/qrcode/genOrResetQrCode.action";
  89 +//撤回消息
  90 +static NSString *const CNRevokebatchsendmsg = API_Contact@"/CnliveIM/notify/revokeBatchSendMsg.action";
  91 +//检验二维码
  92 +static NSString *const CNCheckOrNewCodeUrl = API_Host@"/Daren/qrcode/checkQrCode.action";
  93 +//扫码支付生成订单
  94 +static NSString *const CNCheckAddOrderForDarenUrl =API_Host@"/Daren/order/addOrder.action";
  95 +//目击者
  96 +static NSString *const CNChecksigninfoDarenUrl = API_Host@"/Daren/sign/checkSignInfo.action";
  97 +//扫码返回活动地址
  98 +static NSString *const CNCheckQrActivityDarenUrl = API_Host@"/Daren/sign/checkQrActivity.action";
  99 +
  100 +//获取Gif表情包列表
  101 +static NSString *const CNGifFaceShopListUrl = API_Host@"/Daren/section/getSectionList.action";
  102 +//获取一个表情包信息
  103 +static NSString *const CNGetGifFacePackageUrl = API_Host@"/Daren/section/getSectionDetail.action";
  104 +
  105 +#pragma mark -
  106 +#pragma mark - 地址管理相关
  107 +//添加联系人
  108 +static NSString *const CNAddContactUrl = API_Host@"/Daren/contact/addContact.action";
  109 +
  110 +//查询联系人
  111 +static NSString *const CNReadContacstUrl = API_Host@"/Daren/contact/readContacts.action";
  112 +
  113 +//删除联系人
  114 +static NSString *const CNDeleteContacstUrl = API_Host@"/Daren/contact/deleteContact.action";
  115 +
  116 +//更新联系人
  117 +static NSString *const CNUpdateContacstUrl = API_Host@"/Daren/contact/updateContact.action";
  118 +
  119 +
  120 +#pragma mark -
  121 +#pragma mark - 订单相关
  122 +//取消订单
  123 +static NSString *const CNOrderCancelUrl = API_Host@"/Daren/order/cancelOrder.action";
  124 +
  125 +//订单有误
  126 +static NSString *const CNOrderErrorUrl = API_Host@"/Daren/order/correctOrder.action";
  127 +
  128 +//查看订单
  129 +static NSString *const CNOrderCheckUrl = API_Host@"/Daren/order/getOrderItem.action";
  130 +
  131 +//生成订单
  132 +static NSString *const CNOrderCreateUrl = API_Host@"/Daren/order/createOrder.action";
  133 +
  134 +//修改订单
  135 +static NSString *const CNOrderModifyUrl = API_Host@"/Daren/order/modifyOrder.action";
  136 +
  137 +//确认订单
  138 +static NSString *const CNOrderConfirmUrl = API_Host@"/Daren/order/confirmOrder.action";
  139 +
  140 +//获取订单详情
  141 +static NSString *const CNGetOrderDetailUrl = API_Host@"/Daren/order/getOrderItem.action";
  142 +
  143 +//根据订单状态获取订单列表
  144 +static NSString *const CNGetOrderListUrl = API_Host@"/Daren/order/getOrdersByStatus.action";
  145 +
  146 +//申请退款
  147 +static NSString *const CNApplyRefundUrl = API_Host@"/Daren/order/applyRefund.action";
  148 +
  149 +//删除订单
  150 +static NSString *const CNDeleteOrderUrl = API_Host@"/Daren/order/deleteOrder.action";
  151 +
  152 +//催单
  153 +static NSString *const CNRemindOrderUrl = API_Contact@"/CnliveIM/notify/remind.action";
  154 +
  155 +//确认收货
  156 +static NSString *const CNConfirmRecvUrl = API_Host@"/Daren/order/confirmRecv.action";
  157 +
  158 +//评价
  159 +static NSString *const CNCommentDarenUrl = API_Host@"/Daren/hudong/commentDaren.action";
  160 +
  161 +//退款原因
  162 +static NSString *const CNRefunfReasonUrl = API_Refund@"/json/refundReason.json";
  163 +
  164 +
  165 +#pragma mark - 发布
  166 +
  167 +//发布视频 短视频接入点播云接口
  168 +static NSString *const CNPublishVideoUrl = API_OpenApi2@"/vod_epg/svInputMamForAPP";
  169 +
  170 +//发布视频 短视频上传获取bucket接口(七牛)
  171 +static NSString *const CNUploadGetBucketUrl = API_OpenApi2@"/storage/getStorageInfo";
  172 +
  173 +//发布图片,上传鉴权接口(七牛)
  174 +static NSString *const CNUploadAuthForApp = API_OpenApi2@"/vod_epg/getUploadAuthForApp";
  175 +
  176 +//上传视频成功的回调url
  177 +static NSString *const CNStockDarenVideoCallBackUrl = API_Host@"/Daren/stock/stockDarenVideo.action";
  178 +
  179 +//发布获取上冰雪banner url
  180 +static NSString *const CNPublishGetSnowBannerUrl = API_Host@"/Daren/snow/getSnowBanner.action";
  181 +
  182 +
  183 +#pragma mark - 检验群公告敏感词
  184 +
  185 +static NSString *const CNCheckFeaturedGroup = API_Host@"/Daren/announcementCheck/checkFeaturedGroup.action";
  186 +
  187 +#pragma mark - 特色群组活动管理
  188 +//获取群组活动收费记录
  189 +static NSString *const CNActiveGroupFundsRecordsUrl = API_Host@"/Daren/groupManagement/groupFundsRecords.action";
  190 +
  191 +//获取投票详情
  192 +static NSString *const CNGetVoteMsgSourceUrl = API_Host@"/Daren/vote/getVoteMsg.action";
  193 +
  194 +//获取收费详情
  195 +static NSString *const CNQueryActivityFeeSourceUrl = API_Host@"/Daren/groupManagement/queryActivityFee.action";
  196 +
  197 +//历任群主列表
  198 +static NSString *const CNGetSuccessiveGroupListUrl = API_Host@"/Daren/groupManagement/getSuccessiveGroupList.action";
  199 +
  200 +//获取投票记录的列表
  201 +static NSString *const CNGetVotesSourceListUrl = API_Host@"/Daren/vote/getVotes.action";
  202 +
  203 +//拉起支付并做定点预处理
  204 +static NSString *const CNPayByGroupMembersUrl = API_Host@"/Daren/groupManagement/payByGroupMembers.action";
  205 +
  206 +//获取支付状态
  207 +static NSString *const CNCheckPaymentSourceUrl = API_Host@"/Daren/groupManagement/checkPayment.action";
  208 +
  209 +//投票
  210 +static NSString *const CNGroupVoteSourceUrl = API_Host@"/Daren/vote/groupVote.action";
  211 +
  212 +//删除投票
  213 +static NSString *const CNStopVoteSourceUrl = API_Host@"/Daren/vote/stopVote.action";
  214 +
  215 +//获取提现的秘钥获取
  216 +static NSString *const CNGetCurrentKeySourceUrl = API_Host@"/Daren/groupManagement/getCurrentKey.action";
  217 +
  218 +//验证秘钥的发送
  219 +static NSString *const CNSendSecretKeySourceUrl = API_Host@"/Daren/groupManagement/sendSecretKey.action";
  220 +
  221 +//秘钥的验证
  222 +static NSString *const CNGroupManagementCheckKeyUrl = API_Host@"/Daren/groupManagement/checkKey.action";
  223 +
  224 +//网++支付的预支付订单生成 & 网++ 余额支付
  225 +static NSString *const CNGroupWjjPayWjjPrePaySourceUrl = API_Host@"/Daren/wjjPay/unifiedOrder.action";
  226 +
  227 +//网++ 余额支付
  228 +static NSString *const CNGroupWjjPayWjjSourceUrl = API_Host@"/Daren/wjjPay/unifiedPay.action";
  229 +
  230 +//返回公钥&随机AESKey
  231 +static NSString *const CNGroupReturnEncryptKeyUrl = API_Host@"/Daren/wjjPay/getKey.action";
  232 +
  233 +//获取分享下载的地址
  234 +static NSString *const CNShareDownloadSourceUrl = API_Host@"/Daren/common/appDownLoadUrl.action";
  235 +
  236 +//获取分享达人主页的地址
  237 +static NSString *const CNShareDarenHomeSourceUrl = API_Host@"/Daren/common/shareDarenHomePage.action";
  238 +
  239 +//扫码获取棉花糖信息
  240 +static NSString *const CNOrderMHTSourceUrl = API_Host@"/Daren/order/addOrderMHT.action";
  241 +
  242 +//订阅号特色群群组转账状态查询
  243 +static NSString *const CNQueryTransferUrl = API_Host@"/Daren/groupManagement/getQueryTransfer.action";
  244 +
  245 +#pragma mark -
  246 +#pragma mark - 朋友圈
  247 +//发布上冰雪图文
  248 +static NSString *const CNPublishSnowUrl = API_Host@"/Daren/snow/releaseSnow.action";
  249 +
  250 +//发布朋友圈
  251 +static NSString *const CNPublishFriendsCircleUrl = API_Host@"/Daren/moment/releaseMoment.action";
  252 +// 选择圈子
  253 +static NSString *const CNGetPublishTypeListUrl = API_Host@"/Daren/publishType/getPublishTypeList.action";
  254 +
  255 +//目击者发布朋友圈
  256 +static NSString *const CNPublishWintessCircleUrl = API_Host@"/Daren/witness/releaseWitness.action";
  257 +//获取朋友圈内容
  258 +static NSString *const CNGetFriendsCircleContentUrl = API_Host@"/Daren/moment/friendMoment.action";
  259 +
  260 +//获取我的朋友圈内容(我的发布记录)
  261 +static NSString *const CNGetMyCircleContentUrl = API_Host@"/Daren/moment/myMoment.action";
  262 +
  263 +//朋友圈评论或回复
  264 +static NSString *const CNFirendsCircleCommentReplyUrl = API_Host@"/Daren/hudong/commentMoment.action";
  265 +
  266 +//删除朋友圈评论
  267 +static NSString *const CNFirendsCircleCommentDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  268 +
  269 +//删除好友时,调用接口
  270 +static NSString *const CNDeleteFriendUrl = API_Host@"/Daren/sub/deleteFriend.action";
  271 +
  272 +//删除我的朋友圈某条内容
  273 +static NSString *const CNDeleteMyMomentItemUrl = API_Host@"/Daren/moment/deleteMyMoment.action";
  274 +
  275 +//删除我的相关收藏
  276 +static NSString *const CNDeleteMyCollectionItemUrl = API_Host@"/Daren/stock/collection.action";
  277 +
  278 +//读取朋友圈某条动态的评论(含回复)
  279 +static NSString *const CNGetMomentAllCommontUrl = API_OpenApi2@"/commentServices/services/commentForChat/readAll";
  280 +
  281 +//读取朋友圈某条动态的点赞列表
  282 +static NSString *const CNGetMomentAllFavoriteUrl = API_OpenApi2@"/support/readAll";
  283 +
  284 +//读取朋友圈某条动态的点赞列表(新接口)
  285 +static NSString *const CNGetMomentAllNEWFavoriteUrl = API_OpenApi2@"/support/loadSupport";
  286 +
  287 +//朋友圈某条动态点赞
  288 +static NSString *const CNFavoriteMomentUrl = API_Host@"/Daren/moment/praiseMoment.action";
  289 +
  290 +////获取朋友圈新消息数量
  291 +//static NSString *const CNGetMomentNewMsgCountUrl = API_Host@"/Daren/moment/getNewMsg.action";
  292 +
  293 +//获取朋友圈新消息详细
  294 +static NSString *const CNGetMomentNewMsgListUrl = API_Host@"/Daren/moment/getNewMsgList.action";
  295 +
  296 +//获取朋友圈记录详情
  297 +static NSString *const CNGetMomentDetailUrl = API_Host@"/Daren/moment/getMomentDetail.action";
  298 +
  299 +//清空新消息
  300 +static NSString *const CNDeleteNewMsgUrl = API_Host@"/Daren/moment/deleteNewMsg.action";
  301 +
  302 +//个人资料相册
  303 +static NSString *const CNLookUpMyMsgCommontUrl = API_Host@"/Daren/moment/lookUpMyMsg.action";
  304 +
  305 +#pragma mark -
  306 +#pragma mark - 分类
  307 +//分类频道(旧)
  308 +//static NSString *const CNCategoryGetChannelUrl = API_Host@"/Daren/center/getChannel.action";
  309 +//分类频道(新)
  310 +static NSString *const CNCategoryGetChannelUrl = API_Classify@"/contentApi/app";
  311 +//分类首页(旧 18.5.28)
  312 +//static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/center/getCenterPage.action";
  313 +//分类首页(新)
  314 +static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/classify/getNewCenterPage.action";
  315 +
  316 +//分类次级页面-达人列表
  317 +static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/classify/getNewDarensByCategory.action";
  318 +//static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/center/getDarensByCategory.action";
  319 +
  320 +//分类次级页面-已关注达人列表
  321 +static NSString *const CNGetDarensAlreadyUrl = API_Host@"/Daren/classify/getDarenList.action";
  322 +//分类次级页面-未关注达人列表
  323 +static NSString *const CNGetDarensNeverUrl = API_Host@"/Daren/classify/getUnFansOrDarenBean.action";
  324 +// 关注达人
  325 +static NSString *const CNAddDarenSubUrl = API_Host@"/Daren/sub/addDarenSub.action";
  326 +// 取消关注
  327 +static NSString *const CNCancelDarenSubUrl = API_Host@"/Daren/sub/cancelDarenSub.action";
  328 +//分类-搜索
  329 +static NSString *const CNCategorySearchDarenUrl = API_Host@"/Daren/search/searchDaren.action";
  330 +//点播-获取评论列表
  331 +static NSString *const CNGetCommentListUrl = API_OpenApi2@"/commentServices/services/commentForHdBySpId/loadComment";
  332 +//点播-评论一条节目
  333 +static NSString *const CNCommentProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/insertComment";
  334 +//点播-点赞一条节目
  335 +static NSString *const CNPraiseProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/praiseComment";
  336 +
  337 +#pragma mark - 听见中国
  338 +//获取音频播放详情
  339 +static NSString *const CNAudioPlayerDetailUrl = API_Classify@"/playApi/play";
  340 +//获取音频播放列表
  341 +static NSString *const CNAlbumAudioListUrl = API_Classify@"/contentApi/albumAudioList";
  342 +//播放进度回调
  343 +static NSString *const CNAudioRecordScheduleUrl = API_Classify@"/recordApi/end";
  344 +//历史记录列表
  345 +static NSString *const CNAudioPastRecordsUrl = API_Classify@"/recordApi/getRecords";
  346 +//删除历史记录列表
  347 +static NSString *const CNAudioDeletePastRecordsUrl = API_Classify@"/recordApi/delete";
  348 +// 简介列表
  349 +static NSString *const CNAlbumMsgUrl = API_Classify@"/contentApi/getAlbumMsg";
  350 +//节目列表
  351 +static NSString *const CNAlbumListUrl = API_Classify@"/contentApi/albumAudioList";
  352 +#pragma mark -
  353 +#pragma mark - 点播
  354 +//视频点播
  355 +static NSString *const CNVideoDemandUrl = API_Classify@"/playApi/play";
  356 +//查看全部
  357 +static NSString *const CNLookAtAllUrl = API_Classify@"/playApi/moreList";
  358 +
  359 +static NSString *const CNCommentsListUrl = API_OpenApi2@"/commentServices/services/commentForChat/loadComment";
  360 +static NSString *const CNCommentsAddUrl = API_OpenApi2@"/commentServices/services/commentForChat/insert";
  361 +static NSString *const CNCommentsDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  362 +
  363 +
  364 +//帮助与反馈上传反馈信息&图片
  365 +static NSString *const CNUpdateFeedbackUrl = API_Host@"/Daren/feedback/collectFeedback.action";
  366 +//检查扫描结果是否有效
  367 +static NSString *const CNCheckQrCodeUrl = API_Host@"/Daren/qrcode/checkQrCodeUrl.action";
  368 +
  369 +// Native 分类
  370 +// 获取所有频道列表
  371 +static NSString *const CNAllChannelList = @"http://intertv.cnlive.com/zgw/api/channellist";
  372 +//App配置信息
  373 +static NSString *const AppStart = @"http://intertv.cnlive.com/zgw/api/appstart";
  374 +
  375 +#pragma mark -
  376 +#pragma mark - 申请目击者
  377 +// 目击者身份信息申请
  378 +static NSString *const CNApplyWitnessUrl = API_Host@"/Daren/witness/applyWitness.action";
  379 +// 目击者身份校验
  380 +static NSString *const CNCheckWitnessUrl = API_Host@"/Daren/witness/checkWitness.action";
  381 +//获取订阅号主页内容
  382 +static NSString *const CNGetSpHomePageInfoUrl = API_Classify"/contentApi/getSpInfo";
  383 +//获取订阅号分页内容
  384 +static NSString *const CNGetSpContentListUrl = API_Classify"/contentApi/getSpContentList";
  385 +//关注订阅号
  386 +static NSString *const CNGetSpAddFollowsUrl = API_Host@"/Daren/group/addFollows.action";
  387 +//取消关注订阅号
  388 +static NSString *const CNGetSpUserCancelFollowUrl = API_Host@"/Daren/group/userCancelFollow.action";
  389 +//加入群聊
  390 +static NSString *const CNGetSpUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  391 +//获取全部粉丝
  392 +static NSString *const CNGetSPAllFansUrl = API_Host@"/Daren/group/getFans.action";
  393 +//订阅号加入群聊
  394 +static NSString *const CNGetUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  395 +#pragma mark -
  396 +#pragma mark - 我的
  397 +// 用户uid检测达人状态
  398 +static NSString *const CNCheckDarenUrl = API_Host@"/Daren/member/checkDaren.action";
  399 +// 获取我的余额
  400 +static NSString *const CNGetBalanceUrl = API_Host@"/Daren/member/getBalance.action";
  401 +// 获取交易记录
  402 +static NSString *const CNGetTradingRecordUrl = API_Host@"/Daren/transaction/getTransactionRecord.action";
  403 +// 获取与商户的交易记录
  404 +static NSString *const CNViewTransferRecordUrl = API_Host@"/Daren/groupManagement/viewTransferRecord.action";
  405 +// 交易记录详情
  406 +static NSString *const CNGetRecordSourceMsgUrl = API_Host@"/Daren/transaction/getRecordSourceDetail.action";
  407 +// 是否有支付密码
  408 +static NSString *const CNPasswordIsExistingUrl = API_Host@"/Daren/wjjPay/passwordIsExisting.action";
  409 +// 设置支付密码
  410 +static NSString *const CNSetPasswordUrl = API_Host@"/Daren/wjjPay/setPassword.action";
  411 +// 更改密码时发送验证码
  412 +static NSString *const CNSendSMSSetPasswordUrl = API_Host@"/Daren/sms/sendSMS.action";
  413 +// 更改密码时验证验证码
  414 +static NSString *const CNCheckVerifyCodeSetPasswordUrl = API_Host@"/Daren/sms/checkVerifyCode.action";
  415 +// 查看是否允许好友查看生活圈的状态
  416 +static NSString *const CNIsAllowFindStrangerSwitchUrl = API_Host@"/Daren/moment/findStrangerSwitch.action";
  417 +// 切换是否允许好友查看生活圈
  418 +static NSString *const CNSwitchAllowStrangerUrl = API_Host@"/Daren/moment/strangerSwitch.action";
  419 +
  420 +#pragma mark - 积分
  421 +static NSString *const CNIntegralGetTasksUrl = API_Host@"/Daren/integral/getTasks.action";//任务列表
  422 +static NSString *const CNIntegralAddUrl = API_Host@"/Daren/integral/addTask.action";//增加积分
  423 +static NSString *const CNIntegralDetailsUrl = API_Host@"/Daren/integral/integralRecord.action";//积分明细
  424 +static NSString *const CNIntegralSignInUrl = API_Host@"/Daren/integral/checkIn.action";//签到
  425 +static NSString *const CNCancellationUrl = API_Host@"/Daren/common/cancellationAccount.action";//注销账号
  426 +
  427 +#pragma mark - 隐私
  428 +static NSString *const CNPrivacyNoLetHimSeeListUrl = API_Host@"/Daren/moment/getDoNotletFsids.action";//不让他看列表
  429 +static NSString *const CNPrivacyNoSeeHimListUrl = API_Host@"/Daren/moment/getNoLookFsids.action";//不看他列表
  430 +static NSString *const CNPrivacyNoLetHimSeeAddUrl = API_Host@"/Daren/moment/addDoNotletFsids.action";//不让他看增加
  431 +static NSString *const CNPrivacyNoSeeHimAddUrl = API_Host@"/Daren/moment/addNoLookFsids.action";//不看他增加
  432 +
  433 +#pragma mark - 订阅号
  434 +//选择你感兴趣的内容
  435 +static NSString *const CNInterestedContentUrl = API_Host@"/Daren/group/getSpTags.action";
  436 +//推荐订阅号
  437 +static NSString *const CNRecommendedSubscribeUrl = API_Host@"/Daren/group/getSubscriptionNumbers.action";
  438 +//推荐订阅号完成
  439 +static NSString *const CNRecommendedSubscribeFinishUrl = API_Host@"/Daren/group/userFollowAddGroup.action";
  440 +//全部订阅号(不传sid)
  441 +static NSString *const CNAllSubscribeUrl = API_Host@"/Daren/group/getMoreSubscriptionNumbers.action";
  442 +//全部订阅号(传sid)
  443 +static NSString *const CNAllSubscribeSidUrl = API_Host@"/Daren/group/getCategorySubscriptionNumbers.action";
  444 +//关注订阅号
  445 +static NSString *const CNAddAttentionSubscribeUrl = API_Host@"/Daren/group/addFollows.action";
  446 +//取消关注订阅号
  447 +static NSString *const CNCancelAttentionSubscribeUrl = API_Host@"/Daren/group/userCancelFollow.action";
  448 +//加入群聊订阅号
  449 +static NSString *const CNJumpGroupSubscribeUrl = API_Host@"/Daren/group/userAddGroup.action";
  450 +//设置默认订阅号
  451 +static NSString *const CNSubscribeDefaultAddFollowsUrl = API_Host@"/Daren/group/defaultAddFollows.action";
  452 +
  453 +#pragma mark - App配置信息
  454 +// 获取最新版本信息
  455 +static NSString *const CNGetNewestVersionUrl = API_Host@"/Daren/common/getNewestVersion.action";
  456 +// 获取App配置信息(统一)
  457 +static NSString *const CNGetCommonMsgUrl = API_Host@"/Daren/common/getCommonMsg.action";
  458 +
  459 +#pragma mark 活动投票
  460 +//创建活动收费
  461 +static NSString *const CNAddGroupCharge = API_Host@"/Daren/groupManagement/addGroupCharge.action";
  462 +//邀请加群
  463 +static NSString *const CNInvitationAddgroup = API_Host@"/Daren/groupManagement/invitationAddGroup.action";
  464 +//获取通知列表
  465 +static NSString *const CNGetnoticesubs = API_Host@"/Daren/sub/getNoticeSubs.action";
  466 +// 同意加入群
  467 +static NSString *const CNAgreeAddgroup = API_Contact@"/CnliveIM/notify/addGroup.action"; //@"https://wjjim.cnlive.com/CnliveIM/notify/addGroup.action"
  468 +// 创建投票
  469 +static NSString *const CNAddvote = API_Host@"/Daren/vote/addVote.action";
  470 +//储存历任群主,再特色群创建和转让群主的时候创建
  471 +static NSString *const CNSavesuccessivegroup = API_Host@"/Daren/groupManagement/saveSuccessiveGroup.action";
  472 +
  473 +static NSString *const CNGetAgreementH5Url = API_Refund@"/json/wjj_user_terms.json";
  474 +
  475 +static NSString *const CNWeChatPayUrl = API_ThirdPay@"/Daren/pay/notifyWeChatPay.action";
  476 +
  477 +static NSString *const CNAliPayUrl = API_ThirdPay@"/Daren/pay/notifyAliPay.action";
  478 +
  479 +static NSString *const CNUnionPayUrl = API_ThirdPay@"/Daren/pay/notifyUnionPay.action";
  480 +
  481 +static NSString *const CNJSFYNotifyUrl = API_ThirdPay@"/Daren/pay/jsfyPayCallback.action";
  482 +
  483 +//获取特色群限制人数
  484 +static NSString *const CNGroupMemberLimit = @"https://wjj.ys1.cnliveimg.com/json/GroupMemberLimit.json";
  485 +
  486 +#pragma mark -
  487 +#pragma mark - 获取观察者相关
  488 +//获取观察者相关数据
  489 +static NSString *const CNWitnessPublishContent = API_Host@"/Daren/witness/getWitnessPublishContent.action";
  490 +
  491 +//删除观察者相关数据
  492 +static NSString *const CNDeleteOrUpdateWitnessURL = API_Host@"/Daren/witness/deleteOrUpdateWitnessPublish.action";
  493 +
  494 +#pragma mark 直播
  495 +
  496 +//取得相关视频
  497 +static NSString *const CNPlayerBackOrRelatedUrl = API_Classify@"/contentApi/playList";
  498 +
  499 +//取得直播数据
  500 +static NSString *const CNPlayerDetailUrl = API_Classify@"/playApi/play";
  501 +
  502 +//预约
  503 +static NSString *const CNPlayerOrderUrl = API_Classify@"/contentApi/liveAppoint";
  504 +
  505 +//获取直播活动播放信息4App
  506 +static NSString *const CNLiveActivityPlayInfo4App = API_OpenApi2@"/live_epg/getLiveActivityPlayInfo4App";
  507 +//获取直播间详情
  508 +static NSString *const CNLiveRoomInfo = API_Classify@"/playApi/play";
  509 +
  510 +static NSString *const CNNewLiveInfoWeb = API_Classify@"/contentApi/";
  511 +
  512 +//获取点播播放信息
  513 +static NSString *const CNLiveGetVodRates = API_OpenApi2@"/vod_epg/getRates";
  514 +
  515 +//活动举报
  516 +static NSString *const CNLiveActivityReportContent = API_Report@"/CnliveMobile/json/report.action";
  517 +
  518 +//订阅号关注
  519 +static NSString *const CNLiveSPAddFollow = API_Host@"/Daren/group/addFollows.action";
  520 +
  521 +//取消订阅号关注
  522 +static NSString *const CNLiveSPCancelFollow = API_Host@"/Daren/group/userCancelFollow.action";
  523 +
  524 +//订阅号取消管制
  525 +
  526 +
  527 +#pragma mark 黑名单
  528 +//校验黑名单
  529 +static NSString *const CNCheckBlackUser = API_Contact@"/CnliveIM/notify/checkBlackList.action";
  530 +//添加黑名单
  531 +static NSString *const CNBlackListAdd = API_Host@"/Daren/blackList/blackListAdd.action";
  532 +//删除黑名单
  533 +static NSString *const CNBlackListDelete = API_Host @"/Daren/blackList/blackListDelete.action";
  534 +//黑名单列表
  535 +static NSString *const CNBlackList = API_Host@"/Daren/blackList/blackListGet.action";
  536 +
  537 +#pragma mark 好友生活圈观看权限设置
  538 +//增加不让他人看
  539 +static NSString *const CNAdddonotletfsids = API_Host@"/Daren/moment/addDoNotletFsids.action";
  540 +//取消不让他人看
  541 +static NSString *const CNDeldonotletfsids = API_Host@"/Daren/moment/delDoNotletFsids.action";
  542 +//不让他看人列表
  543 +static NSString *const CNGetdonotletfsids = API_Host@"/Daren/moment/getDoNotletFsids.action";
  544 +
  545 +//增加不看他的
  546 +static NSString *const CNAddnolookfsids = API_Host@"/Daren/moment/addNoLookFsids.action";
  547 +//取消不看他的
  548 +static NSString *const CNDelnolookfsids = API_Host@"/Daren/moment/delNoLookFsids.action";
  549 +//不看他的列表
  550 +static NSString *const CNGetnolookfsids = API_Host@"/Daren/moment/getNoLookFsids.action";
  551 +//
  552 +////////////////////////////////////////////////////////
  553 +//////////// 数据库---表名
  554 +////////////////////////////////////////////////////////
  555 +
  556 +//达人个人主页表名
  557 +static NSString *const DarenHomeRealm = @"DarenHome";
  558 +
  559 +//达人列表表名
  560 +static NSString *const DarenSubsRealm = @"DarenSubs";
  561 +
  562 +//生活列表表名
  563 +static NSString *const LifeSubsRealm = @"LifeSubs";
  564 +
  565 +//系统订单列表表名
  566 +static NSString *const LifeHomeRealm = @"LifeHome";
  567 +
  568 +//朋友圈新消息表名
  569 +static NSString *const MomentNewMsgRealm = @"MomentNewMsg";
  570 +
  571 +#endif /* NetworkAPIs_h */
CNLiveEnvironmentConfiguration/Classes/ReleasePersonal/CNEnvironmentHeader.h 0 → 100644
  1 +//
  2 +// CNEnvironmentHeader.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by 张旭 on 2018/5/30.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef CNEnvironmentHeader_h
  10 +#define CNEnvironmentHeader_h
  11 +
  12 +/*
  13 + *网家家环境配置文件
  14 +*/
  15 +
  16 +// App Store 中 AppID 用于跳转 App Store 下载/评分
  17 +#define AppStoreAppId @"1337575478"
  18 +
  19 +// 请求查询app在App Store的上架信息
  20 +#define AppStoreAppInfo @"https://itunes.apple.com/lookup?id=1337575478"
  21 +
  22 +//// h5新闻详情中分享使用到的图片地址
  23 +//#define netAddShareImgUrl WjjH5_Host@"/static/logo.png"
  24 +//#define WjjH5Short_Host @"http://dwz.cnlive.com"
  25 +
  26 +// 正式版--测试环境com.cnlive.CNLiveNetAdd.debug 网家家测试版
  27 +// 正式版--正式环境com.cnlive.CNLiveNetAdd 网家家正式版
  28 +// 企业版--测试环境com.cnlive.CNLiveNetAddInHouse.debug 网家家测试企版
  29 +// 企业版--正式环境com.cnlive.CNLiveNetAddInHouse 网家家内测版
  30 +
  31 +#define ShowGuideView @"no" // yes:显示欢迎页 no:不显示欢迎页
  32 +
  33 +#define Environment_ON 1 // 1:正式环境平台 0:测试环境平台
  34 +
  35 +#if Environment_ON
  36 +
  37 +#pragma mark - 正式环境
  38 +//正式环境平台配置
  39 +//IMSDK相关的配置
  40 +#define kWXAccount @"wjj_app"
  41 +#define kSdkAppId @"1400051680"
  42 +#define kSdkAccountType @"19645"
  43 +
  44 +#ifndef CNLiveNetAddUrlSchems
  45 +#define CNLiveNetAddUrlSchems @"CNLiveNetAddUrlSchems" // 支付宝支付Schems
  46 +#endif
  47 +
  48 +#ifndef CNLiveNetAddUnionPaySchems
  49 +#define CNLiveNetAddUnionPaySchems @"CNLiveNetAddUnionPaySchems" // 银联支付Schems
  50 +#endif
  51 +
  52 +#define CNLiveNewAddDownloadUrl @"http://apiwjj.cnlive.com/download/index.html"
  53 +#define ShareDarenHomeUrl @"http://apiwjj.cnlive.com/daren/download.html"
  54 +#define WjjH5_Host @"http://wjjh5.cnlive.com"
  55 +#define WjjH5_VideoChina WjjH5_Host@"/cnnews.html"
  56 +#define WjjH5_NumProduct WjjH5_Host@"/cndr.html"
  57 +
  58 +#define API_Host @"https://apiwjj.cnlive.com"
  59 +
  60 +#define API_Contact @"https://wjjim.cnlive.com"
  61 +#define API_Refund @"https://wjj.ys1.cnliveimg.com"
  62 +#define API_Report @"https://mobile.cnlive.com"
  63 +#define API_ThirdPay API_Host
  64 +#define API_OpenApi2 @"https://api.cnlive.com/open/api2"
  65 +#define API_Classify @"http://cms.cnlive.com:8768"
  66 +
  67 +#define WjjLive_Host @"http://wjjh5.cnlive.com"
  68 +
  69 +#define TIM_GetTokenUrl API_OpenApi2@"/im_chat/generateUserSign"
  70 +
  71 +// 网++默认头像地址
  72 +#define CNLiveNetAddDefaultHead API_Refund@"/admin/test/head.png"
  73 +
  74 +#define API_BucketName @"mam-wjj-769"
  75 +#define API_PhotoUrl @"http://wjj.ys2.cnliveimg.com/" // 还不知道
  76 +#define MultipleCategory 366
  77 +#define WitnessMultipleCategory 370
  78 +
  79 +#pragma mark - 正式个人/企业开关
  80 +#define IPA_APPSTORE 1 ////1: App Store版 0:企业版
  81 +
  82 +#if IPA_APPSTORE
  83 +// 正式个人版
  84 +////////////////////////////////////////////////////////
  85 +//////////// AppConfig
  86 +////////////////////////////////////////////////////////
  87 +
  88 +//正式版 com.cnlive.CNLiveNetAdd
  89 +#ifndef AppId
  90 +#define AppId @"769_jetj7bq525"
  91 +#endif
  92 +#ifndef APPKey
  93 +#define APPKey @"0d57b045ec0c3988a682d94c644e66b9b8e0d2b8ef937d"
  94 +#endif
  95 +#ifndef AppSecret
  96 +#define AppSecret @"275e8dc29274a1186d82f65bc607c231d02bcb3bfd8976"
  97 +#define DisplayName @"网家家"
  98 +#endif
  99 +
  100 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAdd"
  101 +
  102 +////////////////////////////////////////////////////////
  103 +//////////// IM推送证书相关
  104 +////////////////////////////////////////////////////////
  105 +#if DEBUG
  106 +#define IM_Cer_busiId 12452 //7307已过期
  107 +#else
  108 +#define IM_Cer_busiId 12453 //7308已过期
  109 +#endif
  110 +
  111 +////////////////////////////////////////////////////////
  112 +//////////// 高德地图Key
  113 +////////////////////////////////////////////////////////
  114 +#define GDApiKey @"5a0e2a559b987e67d5b0c13490adde02"
  115 +
  116 +////////////////////////////////////////////////////////
  117 +//////////// 百度身份证识别
  118 +////////////////////////////////////////////////////////
  119 +#define BDAppId @"14380860"
  120 +#define BDAppKey @"4bX1eK7SiCL461QBnRKilowc"
  121 +#define BDSecret @"BTzXLoPbUjlLeOM1nHnfOuTB9q18YZVq"
  122 +
  123 +////////////////////////////////////////////////////////
  124 +//////////// 听云
  125 +////////////////////////////////////////////////////////
  126 +/*听云AppKey*/ //URL Scheme: tingyun.33700
  127 +static NSString *const CNLiveTingYunAppKey = @"37c9ea3f439145269e5cffe095466b17";
  128 +#else
  129 +// 正式企业版
  130 +// 企业版 com.cnlive.CNLiveNetAddInHouse
  131 +#ifndef AppId
  132 +#define AppId @"769_jetja50p18"
  133 +#endif
  134 +#ifndef APPKey
  135 +#define APPKey @"ad101b9152817a79b5c33c3617b96ff91385096ff3b4ba"
  136 +#endif
  137 +#ifndef AppSecret
  138 +#define AppSecret @"6a324a475a8b9ef903139cb2626fdab6bf4362d6d47c83"
  139 +#define DisplayName @"网家家"
  140 +#endif
  141 +
  142 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse"
  143 +
  144 +//企业证书id
  145 +#if DEBUG
  146 +#define IM_Cer_busiId 7346
  147 +#else
  148 +#define IM_Cer_busiId 7347
  149 +#endif
  150 +
  151 +////////////////////////////////////////////////////////
  152 +//////////// 高德地图Key
  153 +////////////////////////////////////////////////////////
  154 +#define GDApiKey @"84d765606a54635aec2648f663d4a5ed"
  155 +
  156 +////////////////////////////////////////////////////////
  157 +//////////// 百度身份证识别
  158 +////////////////////////////////////////////////////////
  159 +#define BDAppId @"14380872"
  160 +#define BDAppKey @"ibl8vbKkPVYBw5IOvR8tVGGo"
  161 +#define BDSecret @"QEd6n1qruIGG8AYkyLyqepksO2uUe0GK"
  162 +
  163 +////////////////////////////////////////////////////////
  164 +//////////// 听云
  165 +////////////////////////////////////////////////////////
  166 +/*听云AppKey*/ //URL Scheme: tingyun.33699
  167 +static NSString *const CNLiveTingYunAppKey = @"782d9a70547a4e3f91cb328b122bb85c";
  168 +
  169 +#endif
  170 +
  171 +//////////////////////////////////////
  172 +///////////////// 正式平台
  173 +//////////////////////////////////////
  174 +
  175 +/*微信相关参数*/
  176 +static NSString *const CNLiveWeiChatAppId_Share = @"wxed528fc749b7ee88";
  177 +static NSString *const CNLiveWeiChatAppSecret_Share = @"729c3d3055fe336bcdef7020c2548e89";
  178 +
  179 +/*腾讯相关参数*/
  180 +static NSString *const CNLiveQQShareAppId_Share = @"1106691520";
  181 +static NSString *const CNLiveQQShareAppSecret_Share = @"kLZ8CglGFjzrJFan";
  182 +
  183 +/*shareSDK相关参数*/
  184 +static NSString *const CNLiveShareSDKAppId_Share = @"24e4abeaa92d8";
  185 +static NSString *const CNLiveShareSDKAppSecret_Share = @"da94a6f881d404092c9a7108e4470e8f";
  186 +
  187 +#else
  188 +
  189 +#pragma mark - 测试环境
  190 +////////////////////////////////////////////////////////////
  191 +// 测试环境平台配置
  192 +// IMSDK相关的配置
  193 +#define kWXAccount @"wjj_app_test"
  194 +#define kSdkAppId @"1400052101"
  195 +#define kSdkAccountType @"27313"
  196 +
  197 +#ifndef CNLiveNetAddUrlSchems
  198 +#define CNLiveNetAddUrlSchems @"CNLiveNetAddTestUrlSchems" // 支付宝支付Schems
  199 +#endif
  200 +#ifndef CNLiveNetAddUnionPaySchems
  201 +#define CNLiveNetAddUnionPaySchems @"CNLiveNetAddTestUnionPaySchems" // 银联支付Schems
  202 +#endif
  203 +
  204 +#define CNLiveNewAddDownloadUrl @"https://fir.im/layf"
  205 +#define ShareDarenHomeUrl @"http://apiwjj.cnlive.com/download/index.html"
  206 +#define WjjH5_Host @"http://wjjh5test.cnlive.com"
  207 +#define WjjH5_VideoChina WjjH5_Host@"/cnnews.html"
  208 +#define WjjH5_NumProduct WjjH5_Host@"/cndr.html"
  209 +
  210 +#define API_Host @"https://apiwjjtest.cnlive.com"
  211 +#define API_Contact @"https://imtest.cnlive.com"
  212 +#define API_OpenApi2 @"https://api.cnlive.com/open/api2"
  213 +#define API_Refund @"https://wjj.ys1.cnliveimg.com"
  214 +#define API_Report @"https://mobile.cnlive.com"
  215 +#define API_ThirdPay API_Host
  216 +#define API_BucketName @"mam-wjjtest-802"
  217 +#define API_PhotoUrl @"http://wjjtest.ys2.cnliveimg.com/"
  218 +#define MultipleCategory 371
  219 +#define WitnessMultipleCategory 375
  220 +#define API_Classify @"http://cmstest.cnlive.com:8768"
  221 +#define WjjLive_Host @"http://wjjh5test.cnlive.com"
  222 +
  223 +#define TIM_GetTokenUrl API_Contact@"/CnliveIM/notify/generateUserSign.action"
  224 +// 网++默认头像地址
  225 +#define CNLiveNetAddDefaultHead API_Refund@"/admin/test/head.png"
  226 +
  227 +/*微信相关参数*/
  228 +static NSString *const CNLiveWeiChatAppId_Share = @"wx9b7f9443a8ccf15a";
  229 +static NSString *const CNLiveWeiChatAppSecret_Share = @"8d9970bf2901411d8dd2bffb344f147e";
  230 +
  231 +/*腾讯相关参数*/
  232 +static NSString *const CNLiveQQShareAppId_Share = @"1106970445";
  233 +static NSString *const CNLiveQQShareAppSecret_Share = @"4hxuJ1HIes4i4hqT";
  234 +
  235 +/*shareSDK相关参数*/
  236 +static NSString *const CNLiveShareSDKAppId_Share = @"26192e9007048";
  237 +static NSString *const CNLiveShareSDKAppSecret_Share = @"f9d2fbf7f7827925c532a716340363c7";
  238 +
  239 +
  240 +#pragma mark - 测试个人/企业开关
  241 +#define IPA_APPSTORE 1 ////1: 个人版 0:企业版
  242 +
  243 +#if IPA_APPSTORE
  244 +//测试个人版
  245 +////////////////////////////////////////////////////////
  246 +//////////// AppConfig
  247 +////////////////////////////////////////////////////////
  248 +//个人版 com.cnlive.CNLiveNetAdd.debug
  249 +#ifndef AppId
  250 +#define AppId @"802_jhlqbq4475"
  251 +#endif
  252 +#ifndef APPKey
  253 +#define APPKey @"d25cf0dce30e7d7ddc7c857b85ab0dde670d491fc2ffe4"
  254 +#endif
  255 +#ifndef AppSecret
  256 +#define AppSecret @"b9064cfe0a030b8b20c061fc0ee3c16acce7757874b7a2"
  257 +#define DisplayName @"网家家测试"
  258 +#endif
  259 +
  260 +
  261 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAdd.debug"
  262 +
  263 +////////////////////////////////////////////////////////
  264 +//////////// IM推送证书相关
  265 +////////////////////////////////////////////////////////
  266 +#if DEBUG
  267 +#define IM_Cer_busiId 12450 //9246已过期
  268 +#else
  269 +#define IM_Cer_busiId 12451 //9247已过期
  270 +#endif
  271 +
  272 +////////////////////////////////////////////////////////
  273 +//////////// 高德地图Key
  274 +////////////////////////////////////////////////////////
  275 +#define GDApiKey @"4b15525f4265edfed8dce1d02f08a893"
  276 +
  277 +////////////////////////////////////////////////////////
  278 +//////////// 百度身份证识别
  279 +////////////////////////////////////////////////////////
  280 +#define BDAppId @"14435697"
  281 +#define BDAppKey @"3LqIXy2AtXxrxyFM8N73QGYN"
  282 +#define BDSecret @"EKZxZza8purqGHOmngkMi7awtZkm0lOW"
  283 +
  284 +////////////////////////////////////////////////////////
  285 +//////////// 听云
  286 +////////////////////////////////////////////////////////
  287 +/*听云AppKey*/ //URL Scheme: tingyun.33185
  288 +static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352";
  289 +
  290 +#else
  291 +//测试企业版
  292 +//企业版 com.cnlive.CNLiveNetAddInHouse.debug
  293 +#ifndef AppId
  294 +#define AppId @"802_jhbqccxw08"
  295 +#endif
  296 +#ifndef APPKey
  297 +#define APPKey @"9c5619e9be747bb3b925dd215ca5923d86f12c09b9394f"
  298 +#endif
  299 +#ifndef AppSecret
  300 +#define AppSecret @"1e6380cb347255e777f72b5aa60f41daa68443a132aaea"
  301 +#define DisplayName @"网家家测试版"
  302 +#endif
  303 +
  304 +#define WjjShare_Iden @"group.com.cnlive.CNLiveNetAddInHouse.debug"
  305 +
  306 +//企业证书id
  307 +#if DEBUG
  308 +#define IM_Cer_busiId 9204
  309 +#else
  310 +#define IM_Cer_busiId 9205
  311 +#endif
  312 +
  313 +////////////////////////////////////////////////////////
  314 +//////////// 高德地图Key
  315 +////////////////////////////////////////////////////////
  316 +#define GDApiKey @"f4459435f1c756d2efedc6ceec12be63"
  317 +
  318 +////////////////////////////////////////////////////////
  319 +//////////// 百度身份证识别
  320 +////////////////////////////////////////////////////////
  321 +#define BDAppId @"14435716"
  322 +#define BDAppKey @"4foSD6VBILQ61olzmVAFEVGZ"
  323 +#define BDSecret @"VEuz92EVrmEVrrgTZKxYo4ApUkol7Ptk"
  324 +
  325 +////////////////////////////////////////////////////////
  326 +//////////// 听云
  327 +////////////////////////////////////////////////////////
  328 +/*听云AppKey*/ //URL Scheme: tingyun.33185
  329 +static NSString *const CNLiveTingYunAppKey = @"3dda66ec904a4c3a8ad0169ca74de352";
  330 +
  331 +#endif
  332 +
  333 +#endif
  334 +
  335 +
  336 +#endif /* CNEnvironmentHeader_h */
CNLiveEnvironmentConfiguration/Classes/ReleasePersonal/NetworkAPIs.h 0 → 100644
  1 +//
  2 +// NetworkAPIs.h
  3 +// CNLiveNetAdd
  4 +//
  5 +// Created by iOS on 2018/1/24.
  6 +// Copyright © 2018年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef NetworkAPIs_h
  10 +#define NetworkAPIs_h
  11 +
  12 +//上传手机通讯录和 生成订单二维码时,DES加密key
  13 +#define kUploadContactsKey @"cnliveIm"
  14 +
  15 +#define iUploadContacts API_Contact@"/CnliveIM/notify/uploadContacts.action"
  16 +//其他投诉
  17 +static NSString *const CNLiveCNReporthtml = WjjH5_Host@"/cnReport.html";
  18 +
  19 +//特色群活动必要说明
  20 +static NSString *const CNActivityManageUrl = API_Refund@"/term/ActivityManagement.html";
  21 +
  22 +//特色群投票必要说明
  23 +static NSString *const CNVoteManageUrl = API_Refund@"/term/VoteManagement.html";
  24 +
  25 +//订阅号特色群活动必要说明
  26 +static NSString *const CNActivityManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=hdgl";
  27 +
  28 +//订阅号特色群投票必要说明
  29 +static NSString *const CNVoteManageSPUrl = WjjH5_Host"/cnGroupDescription.html?type=tp";
  30 +
  31 +//获取生活号列表
  32 +static NSString *const CNGetLifeSubsUrl = API_Host@"/Daren/sub/getLifeSubs.action";
  33 +
  34 +//获取达人号列表
  35 +static NSString *const CNGetDarenSubsUrl = API_Host @"/Daren/sub/getDarenSubs.action";
  36 +
  37 +//达人号列表删除某达人
  38 +static NSString *const CNDarenSubsDeleteDarenUrl = API_Host@"/Daren/sub/deleteDarenSubs.action";
  39 +
  40 +//添加某个收藏
  41 +static NSString *const CNDarenSubsCollectionUrl = API_Host@"/Daren/stock/collection.action";
  42 +
  43 +//收藏界面删除某个收藏
  44 +static NSString *const CNDarenSubsDeleteCollectionUrl = API_Host@"/Daren/stock/deleteCollection.action";
  45 +
  46 +//达人主页
  47 +static NSString *const CNDarenHomeUrl = API_Host@"/Daren/sub/getDarenHome.action";
  48 +
  49 +//获取收藏结果详情
  50 +static NSString *const CNDarenCollectListDataSourceUrl = API_Host@"/Daren/stock/getCollectionList.action";
  51 +
  52 +//生活号主页
  53 +static NSString *const CNLifeHomeUrl = API_Host@"/Daren/sub/getLifeHome.action";
  54 +
  55 +//删除生活号
  56 +static NSString *const CNLiveLifeDeleteUrl = API_Host@"/Daren/sub/deleteLifeSubs.action";
  57 +
  58 +//通过手机号查找好友
  59 +static NSString *const CNSearchByPhoneNumUrl = API_Contact@"/CnliveIM/notify/searchByPhoneNumber.action";
  60 +
  61 +
  62 +//获取已关注的达人列表
  63 +static NSString *const CNGetDarensUrl = API_Host@"/Daren/sub/getDarens.action";
  64 +
  65 +//获取达人的粉丝列表
  66 +static NSString *const CNGetFansUrl = API_Host@"/Daren/sub/getFans.action";
  67 +
  68 +//评价列表
  69 +static NSString *const CNGetDarenCommentUrl = API_Host@"/Daren/hudong/getDarenComment.action";
  70 +
  71 +//获取达人相关信息
  72 +static NSString *const CNGetDarenByIdUrl = API_Host@"/Daren/member/getDarenById.action";
  73 +
  74 +#pragma mark -
  75 +#pragma mark - 定义消息
  76 +//发送自定义消息
  77 +static NSString *const CNFriendshipVerifyUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  78 +//音视频自定义消息
  79 +static NSString *const CNVideoOrAudioUrl = API_Contact@"/CnliveIM/notify/custMsgPush.action";
  80 +
  81 +//音视频取得房间号
  82 +static NSString *const CNVideoOrAudioGetRoomID = API_Host@"/Daren/common/getRoomId.action";
  83 +
  84 +//发送文本消息
  85 +static NSString *const CNTextMsgPushUrl = API_Contact@"/CnliveIM/notify/textMsgPush.action";
  86 +
  87 +//生成二维码
  88 +static NSString *const CNGenOrResetCodeUrl = API_Host@"/Daren/qrcode/genOrResetQrCode.action";
  89 +//撤回消息
  90 +static NSString *const CNRevokebatchsendmsg = API_Contact@"/CnliveIM/notify/revokeBatchSendMsg.action";
  91 +//检验二维码
  92 +static NSString *const CNCheckOrNewCodeUrl = API_Host@"/Daren/qrcode/checkQrCode.action";
  93 +//扫码支付生成订单
  94 +static NSString *const CNCheckAddOrderForDarenUrl =API_Host@"/Daren/order/addOrder.action";
  95 +//目击者
  96 +static NSString *const CNChecksigninfoDarenUrl = API_Host@"/Daren/sign/checkSignInfo.action";
  97 +//扫码返回活动地址
  98 +static NSString *const CNCheckQrActivityDarenUrl = API_Host@"/Daren/sign/checkQrActivity.action";
  99 +
  100 +//获取Gif表情包列表
  101 +static NSString *const CNGifFaceShopListUrl = API_Host@"/Daren/section/getSectionList.action";
  102 +//获取一个表情包信息
  103 +static NSString *const CNGetGifFacePackageUrl = API_Host@"/Daren/section/getSectionDetail.action";
  104 +
  105 +#pragma mark -
  106 +#pragma mark - 地址管理相关
  107 +//添加联系人
  108 +static NSString *const CNAddContactUrl = API_Host@"/Daren/contact/addContact.action";
  109 +
  110 +//查询联系人
  111 +static NSString *const CNReadContacstUrl = API_Host@"/Daren/contact/readContacts.action";
  112 +
  113 +//删除联系人
  114 +static NSString *const CNDeleteContacstUrl = API_Host@"/Daren/contact/deleteContact.action";
  115 +
  116 +//更新联系人
  117 +static NSString *const CNUpdateContacstUrl = API_Host@"/Daren/contact/updateContact.action";
  118 +
  119 +
  120 +#pragma mark -
  121 +#pragma mark - 订单相关
  122 +//取消订单
  123 +static NSString *const CNOrderCancelUrl = API_Host@"/Daren/order/cancelOrder.action";
  124 +
  125 +//订单有误
  126 +static NSString *const CNOrderErrorUrl = API_Host@"/Daren/order/correctOrder.action";
  127 +
  128 +//查看订单
  129 +static NSString *const CNOrderCheckUrl = API_Host@"/Daren/order/getOrderItem.action";
  130 +
  131 +//生成订单
  132 +static NSString *const CNOrderCreateUrl = API_Host@"/Daren/order/createOrder.action";
  133 +
  134 +//修改订单
  135 +static NSString *const CNOrderModifyUrl = API_Host@"/Daren/order/modifyOrder.action";
  136 +
  137 +//确认订单
  138 +static NSString *const CNOrderConfirmUrl = API_Host@"/Daren/order/confirmOrder.action";
  139 +
  140 +//获取订单详情
  141 +static NSString *const CNGetOrderDetailUrl = API_Host@"/Daren/order/getOrderItem.action";
  142 +
  143 +//根据订单状态获取订单列表
  144 +static NSString *const CNGetOrderListUrl = API_Host@"/Daren/order/getOrdersByStatus.action";
  145 +
  146 +//申请退款
  147 +static NSString *const CNApplyRefundUrl = API_Host@"/Daren/order/applyRefund.action";
  148 +
  149 +//删除订单
  150 +static NSString *const CNDeleteOrderUrl = API_Host@"/Daren/order/deleteOrder.action";
  151 +
  152 +//催单
  153 +static NSString *const CNRemindOrderUrl = API_Contact@"/CnliveIM/notify/remind.action";
  154 +
  155 +//确认收货
  156 +static NSString *const CNConfirmRecvUrl = API_Host@"/Daren/order/confirmRecv.action";
  157 +
  158 +//评价
  159 +static NSString *const CNCommentDarenUrl = API_Host@"/Daren/hudong/commentDaren.action";
  160 +
  161 +//退款原因
  162 +static NSString *const CNRefunfReasonUrl = API_Refund@"/json/refundReason.json";
  163 +
  164 +
  165 +#pragma mark - 发布
  166 +
  167 +//发布视频 短视频接入点播云接口
  168 +static NSString *const CNPublishVideoUrl = API_OpenApi2@"/vod_epg/svInputMamForAPP";
  169 +
  170 +//发布视频 短视频上传获取bucket接口(七牛)
  171 +static NSString *const CNUploadGetBucketUrl = API_OpenApi2@"/storage/getStorageInfo";
  172 +
  173 +//发布图片,上传鉴权接口(七牛)
  174 +static NSString *const CNUploadAuthForApp = API_OpenApi2@"/vod_epg/getUploadAuthForApp";
  175 +
  176 +//上传视频成功的回调url
  177 +static NSString *const CNStockDarenVideoCallBackUrl = API_Host@"/Daren/stock/stockDarenVideo.action";
  178 +
  179 +//发布获取上冰雪banner url
  180 +static NSString *const CNPublishGetSnowBannerUrl = API_Host@"/Daren/snow/getSnowBanner.action";
  181 +
  182 +
  183 +#pragma mark - 检验群公告敏感词
  184 +
  185 +static NSString *const CNCheckFeaturedGroup = API_Host@"/Daren/announcementCheck/checkFeaturedGroup.action";
  186 +
  187 +#pragma mark - 特色群组活动管理
  188 +//获取群组活动收费记录
  189 +static NSString *const CNActiveGroupFundsRecordsUrl = API_Host@"/Daren/groupManagement/groupFundsRecords.action";
  190 +
  191 +//获取投票详情
  192 +static NSString *const CNGetVoteMsgSourceUrl = API_Host@"/Daren/vote/getVoteMsg.action";
  193 +
  194 +//获取收费详情
  195 +static NSString *const CNQueryActivityFeeSourceUrl = API_Host@"/Daren/groupManagement/queryActivityFee.action";
  196 +
  197 +//历任群主列表
  198 +static NSString *const CNGetSuccessiveGroupListUrl = API_Host@"/Daren/groupManagement/getSuccessiveGroupList.action";
  199 +
  200 +//获取投票记录的列表
  201 +static NSString *const CNGetVotesSourceListUrl = API_Host@"/Daren/vote/getVotes.action";
  202 +
  203 +//拉起支付并做定点预处理
  204 +static NSString *const CNPayByGroupMembersUrl = API_Host@"/Daren/groupManagement/payByGroupMembers.action";
  205 +
  206 +//获取支付状态
  207 +static NSString *const CNCheckPaymentSourceUrl = API_Host@"/Daren/groupManagement/checkPayment.action";
  208 +
  209 +//投票
  210 +static NSString *const CNGroupVoteSourceUrl = API_Host@"/Daren/vote/groupVote.action";
  211 +
  212 +//删除投票
  213 +static NSString *const CNStopVoteSourceUrl = API_Host@"/Daren/vote/stopVote.action";
  214 +
  215 +//获取提现的秘钥获取
  216 +static NSString *const CNGetCurrentKeySourceUrl = API_Host@"/Daren/groupManagement/getCurrentKey.action";
  217 +
  218 +//验证秘钥的发送
  219 +static NSString *const CNSendSecretKeySourceUrl = API_Host@"/Daren/groupManagement/sendSecretKey.action";
  220 +
  221 +//秘钥的验证
  222 +static NSString *const CNGroupManagementCheckKeyUrl = API_Host@"/Daren/groupManagement/checkKey.action";
  223 +
  224 +//网++支付的预支付订单生成 & 网++ 余额支付
  225 +static NSString *const CNGroupWjjPayWjjPrePaySourceUrl = API_Host@"/Daren/wjjPay/unifiedOrder.action";
  226 +
  227 +//网++ 余额支付
  228 +static NSString *const CNGroupWjjPayWjjSourceUrl = API_Host@"/Daren/wjjPay/unifiedPay.action";
  229 +
  230 +//返回公钥&随机AESKey
  231 +static NSString *const CNGroupReturnEncryptKeyUrl = API_Host@"/Daren/wjjPay/getKey.action";
  232 +
  233 +//获取分享下载的地址
  234 +static NSString *const CNShareDownloadSourceUrl = API_Host@"/Daren/common/appDownLoadUrl.action";
  235 +
  236 +//获取分享达人主页的地址
  237 +static NSString *const CNShareDarenHomeSourceUrl = API_Host@"/Daren/common/shareDarenHomePage.action";
  238 +
  239 +//扫码获取棉花糖信息
  240 +static NSString *const CNOrderMHTSourceUrl = API_Host@"/Daren/order/addOrderMHT.action";
  241 +
  242 +//订阅号特色群群组转账状态查询
  243 +static NSString *const CNQueryTransferUrl = API_Host@"/Daren/groupManagement/getQueryTransfer.action";
  244 +
  245 +#pragma mark -
  246 +#pragma mark - 朋友圈
  247 +//发布上冰雪图文
  248 +static NSString *const CNPublishSnowUrl = API_Host@"/Daren/snow/releaseSnow.action";
  249 +
  250 +//发布朋友圈
  251 +static NSString *const CNPublishFriendsCircleUrl = API_Host@"/Daren/moment/releaseMoment.action";
  252 +// 选择圈子
  253 +static NSString *const CNGetPublishTypeListUrl = API_Host@"/Daren/publishType/getPublishTypeList.action";
  254 +
  255 +//目击者发布朋友圈
  256 +static NSString *const CNPublishWintessCircleUrl = API_Host@"/Daren/witness/releaseWitness.action";
  257 +//获取朋友圈内容
  258 +static NSString *const CNGetFriendsCircleContentUrl = API_Host@"/Daren/moment/friendMoment.action";
  259 +
  260 +//获取我的朋友圈内容(我的发布记录)
  261 +static NSString *const CNGetMyCircleContentUrl = API_Host@"/Daren/moment/myMoment.action";
  262 +
  263 +//朋友圈评论或回复
  264 +static NSString *const CNFirendsCircleCommentReplyUrl = API_Host@"/Daren/hudong/commentMoment.action";
  265 +
  266 +//删除朋友圈评论
  267 +static NSString *const CNFirendsCircleCommentDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  268 +
  269 +//删除好友时,调用接口
  270 +static NSString *const CNDeleteFriendUrl = API_Host@"/Daren/sub/deleteFriend.action";
  271 +
  272 +//删除我的朋友圈某条内容
  273 +static NSString *const CNDeleteMyMomentItemUrl = API_Host@"/Daren/moment/deleteMyMoment.action";
  274 +
  275 +//删除我的相关收藏
  276 +static NSString *const CNDeleteMyCollectionItemUrl = API_Host@"/Daren/stock/collection.action";
  277 +
  278 +//读取朋友圈某条动态的评论(含回复)
  279 +static NSString *const CNGetMomentAllCommontUrl = API_OpenApi2@"/commentServices/services/commentForChat/readAll";
  280 +
  281 +//读取朋友圈某条动态的点赞列表
  282 +static NSString *const CNGetMomentAllFavoriteUrl = API_OpenApi2@"/support/readAll";
  283 +
  284 +//读取朋友圈某条动态的点赞列表(新接口)
  285 +static NSString *const CNGetMomentAllNEWFavoriteUrl = API_OpenApi2@"/support/loadSupport";
  286 +
  287 +//朋友圈某条动态点赞
  288 +static NSString *const CNFavoriteMomentUrl = API_Host@"/Daren/moment/praiseMoment.action";
  289 +
  290 +////获取朋友圈新消息数量
  291 +//static NSString *const CNGetMomentNewMsgCountUrl = API_Host@"/Daren/moment/getNewMsg.action";
  292 +
  293 +//获取朋友圈新消息详细
  294 +static NSString *const CNGetMomentNewMsgListUrl = API_Host@"/Daren/moment/getNewMsgList.action";
  295 +
  296 +//获取朋友圈记录详情
  297 +static NSString *const CNGetMomentDetailUrl = API_Host@"/Daren/moment/getMomentDetail.action";
  298 +
  299 +//清空新消息
  300 +static NSString *const CNDeleteNewMsgUrl = API_Host@"/Daren/moment/deleteNewMsg.action";
  301 +
  302 +//个人资料相册
  303 +static NSString *const CNLookUpMyMsgCommontUrl = API_Host@"/Daren/moment/lookUpMyMsg.action";
  304 +
  305 +#pragma mark -
  306 +#pragma mark - 分类
  307 +//分类频道(旧)
  308 +//static NSString *const CNCategoryGetChannelUrl = API_Host@"/Daren/center/getChannel.action";
  309 +//分类频道(新)
  310 +static NSString *const CNCategoryGetChannelUrl = API_Classify@"/contentApi/app";
  311 +//分类首页(旧 18.5.28)
  312 +//static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/center/getCenterPage.action";
  313 +//分类首页(新)
  314 +static NSString *const CNCategoryCenterPageUrl = API_Host@"/Daren/classify/getNewCenterPage.action";
  315 +
  316 +//分类次级页面-达人列表
  317 +static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/classify/getNewDarensByCategory.action";
  318 +//static NSString *const CNGetDarensByCategoryUrl = API_Host@"/Daren/center/getDarensByCategory.action";
  319 +
  320 +//分类次级页面-已关注达人列表
  321 +static NSString *const CNGetDarensAlreadyUrl = API_Host@"/Daren/classify/getDarenList.action";
  322 +//分类次级页面-未关注达人列表
  323 +static NSString *const CNGetDarensNeverUrl = API_Host@"/Daren/classify/getUnFansOrDarenBean.action";
  324 +// 关注达人
  325 +static NSString *const CNAddDarenSubUrl = API_Host@"/Daren/sub/addDarenSub.action";
  326 +// 取消关注
  327 +static NSString *const CNCancelDarenSubUrl = API_Host@"/Daren/sub/cancelDarenSub.action";
  328 +//分类-搜索
  329 +static NSString *const CNCategorySearchDarenUrl = API_Host@"/Daren/search/searchDaren.action";
  330 +//点播-获取评论列表
  331 +static NSString *const CNGetCommentListUrl = API_OpenApi2@"/commentServices/services/commentForHdBySpId/loadComment";
  332 +//点播-评论一条节目
  333 +static NSString *const CNCommentProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/insertComment";
  334 +//点播-点赞一条节目
  335 +static NSString *const CNPraiseProgrammaUrl = API_OpenApi2@"/commentServices/commentForHdBySpId/praiseComment";
  336 +
  337 +#pragma mark - 听见中国
  338 +//获取音频播放详情
  339 +static NSString *const CNAudioPlayerDetailUrl = API_Classify@"/playApi/play";
  340 +//获取音频播放列表
  341 +static NSString *const CNAlbumAudioListUrl = API_Classify@"/contentApi/albumAudioList";
  342 +//播放进度回调
  343 +static NSString *const CNAudioRecordScheduleUrl = API_Classify@"/recordApi/end";
  344 +//历史记录列表
  345 +static NSString *const CNAudioPastRecordsUrl = API_Classify@"/recordApi/getRecords";
  346 +//删除历史记录列表
  347 +static NSString *const CNAudioDeletePastRecordsUrl = API_Classify@"/recordApi/delete";
  348 +// 简介列表
  349 +static NSString *const CNAlbumMsgUrl = API_Classify@"/contentApi/getAlbumMsg";
  350 +//节目列表
  351 +static NSString *const CNAlbumListUrl = API_Classify@"/contentApi/albumAudioList";
  352 +#pragma mark -
  353 +#pragma mark - 点播
  354 +//视频点播
  355 +static NSString *const CNVideoDemandUrl = API_Classify@"/playApi/play";
  356 +//查看全部
  357 +static NSString *const CNLookAtAllUrl = API_Classify@"/playApi/moreList";
  358 +
  359 +static NSString *const CNCommentsListUrl = API_OpenApi2@"/commentServices/services/commentForChat/loadComment";
  360 +static NSString *const CNCommentsAddUrl = API_OpenApi2@"/commentServices/services/commentForChat/insert";
  361 +static NSString *const CNCommentsDeleteUrl = API_OpenApi2@"/commentServices/services/commentForChat/delete";
  362 +
  363 +
  364 +//帮助与反馈上传反馈信息&图片
  365 +static NSString *const CNUpdateFeedbackUrl = API_Host@"/Daren/feedback/collectFeedback.action";
  366 +//检查扫描结果是否有效
  367 +static NSString *const CNCheckQrCodeUrl = API_Host@"/Daren/qrcode/checkQrCodeUrl.action";
  368 +
  369 +// Native 分类
  370 +// 获取所有频道列表
  371 +static NSString *const CNAllChannelList = @"http://intertv.cnlive.com/zgw/api/channellist";
  372 +//App配置信息
  373 +static NSString *const AppStart = @"http://intertv.cnlive.com/zgw/api/appstart";
  374 +
  375 +#pragma mark -
  376 +#pragma mark - 申请目击者
  377 +// 目击者身份信息申请
  378 +static NSString *const CNApplyWitnessUrl = API_Host@"/Daren/witness/applyWitness.action";
  379 +// 目击者身份校验
  380 +static NSString *const CNCheckWitnessUrl = API_Host@"/Daren/witness/checkWitness.action";
  381 +//获取订阅号主页内容
  382 +static NSString *const CNGetSpHomePageInfoUrl = API_Classify"/contentApi/getSpInfo";
  383 +//获取订阅号分页内容
  384 +static NSString *const CNGetSpContentListUrl = API_Classify"/contentApi/getSpContentList";
  385 +//关注订阅号
  386 +static NSString *const CNGetSpAddFollowsUrl = API_Host@"/Daren/group/addFollows.action";
  387 +//取消关注订阅号
  388 +static NSString *const CNGetSpUserCancelFollowUrl = API_Host@"/Daren/group/userCancelFollow.action";
  389 +//加入群聊
  390 +static NSString *const CNGetSpUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  391 +//获取全部粉丝
  392 +static NSString *const CNGetSPAllFansUrl = API_Host@"/Daren/group/getFans.action";
  393 +//订阅号加入群聊
  394 +static NSString *const CNGetUserAddGroupUrl = API_Host@"/Daren/group/userAddGroup.action";
  395 +#pragma mark -
  396 +#pragma mark - 我的
  397 +// 用户uid检测达人状态
  398 +static NSString *const CNCheckDarenUrl = API_Host@"/Daren/member/checkDaren.action";
  399 +// 获取我的余额
  400 +static NSString *const CNGetBalanceUrl = API_Host@"/Daren/member/getBalance.action";
  401 +// 获取交易记录
  402 +static NSString *const CNGetTradingRecordUrl = API_Host@"/Daren/transaction/getTransactionRecord.action";
  403 +// 获取与商户的交易记录
  404 +static NSString *const CNViewTransferRecordUrl = API_Host@"/Daren/groupManagement/viewTransferRecord.action";
  405 +// 交易记录详情
  406 +static NSString *const CNGetRecordSourceMsgUrl = API_Host@"/Daren/transaction/getRecordSourceDetail.action";
  407 +// 是否有支付密码
  408 +static NSString *const CNPasswordIsExistingUrl = API_Host@"/Daren/wjjPay/passwordIsExisting.action";
  409 +// 设置支付密码
  410 +static NSString *const CNSetPasswordUrl = API_Host@"/Daren/wjjPay/setPassword.action";
  411 +// 更改密码时发送验证码
  412 +static NSString *const CNSendSMSSetPasswordUrl = API_Host@"/Daren/sms/sendSMS.action";
  413 +// 更改密码时验证验证码
  414 +static NSString *const CNCheckVerifyCodeSetPasswordUrl = API_Host@"/Daren/sms/checkVerifyCode.action";
  415 +// 查看是否允许好友查看生活圈的状态
  416 +static NSString *const CNIsAllowFindStrangerSwitchUrl = API_Host@"/Daren/moment/findStrangerSwitch.action";
  417 +// 切换是否允许好友查看生活圈
  418 +static NSString *const CNSwitchAllowStrangerUrl = API_Host@"/Daren/moment/strangerSwitch.action";
  419 +
  420 +#pragma mark - 积分
  421 +static NSString *const CNIntegralGetTasksUrl = API_Host@"/Daren/integral/getTasks.action";//任务列表
  422 +static NSString *const CNIntegralAddUrl = API_Host@"/Daren/integral/addTask.action";//增加积分
  423 +static NSString *const CNIntegralDetailsUrl = API_Host@"/Daren/integral/integralRecord.action";//积分明细
  424 +static NSString *const CNIntegralSignInUrl = API_Host@"/Daren/integral/checkIn.action";//签到
  425 +static NSString *const CNCancellationUrl = API_Host@"/Daren/common/cancellationAccount.action";//注销账号
  426 +
  427 +#pragma mark - 隐私
  428 +static NSString *const CNPrivacyNoLetHimSeeListUrl = API_Host@"/Daren/moment/getDoNotletFsids.action";//不让他看列表
  429 +static NSString *const CNPrivacyNoSeeHimListUrl = API_Host@"/Daren/moment/getNoLookFsids.action";//不看他列表
  430 +static NSString *const CNPrivacyNoLetHimSeeAddUrl = API_Host@"/Daren/moment/addDoNotletFsids.action";//不让他看增加
  431 +static NSString *const CNPrivacyNoSeeHimAddUrl = API_Host@"/Daren/moment/addNoLookFsids.action";//不看他增加
  432 +
  433 +#pragma mark - 订阅号
  434 +//选择你感兴趣的内容
  435 +static NSString *const CNInterestedContentUrl = API_Host@"/Daren/group/getSpTags.action";
  436 +//推荐订阅号
  437 +static NSString *const CNRecommendedSubscribeUrl = API_Host@"/Daren/group/getSubscriptionNumbers.action";
  438 +//推荐订阅号完成
  439 +static NSString *const CNRecommendedSubscribeFinishUrl = API_Host@"/Daren/group/userFollowAddGroup.action";
  440 +//全部订阅号(不传sid)
  441 +static NSString *const CNAllSubscribeUrl = API_Host@"/Daren/group/getMoreSubscriptionNumbers.action";
  442 +//全部订阅号(传sid)
  443 +static NSString *const CNAllSubscribeSidUrl = API_Host@"/Daren/group/getCategorySubscriptionNumbers.action";
  444 +//关注订阅号
  445 +static NSString *const CNAddAttentionSubscribeUrl = API_Host@"/Daren/group/addFollows.action";
  446 +//取消关注订阅号
  447 +static NSString *const CNCancelAttentionSubscribeUrl = API_Host@"/Daren/group/userCancelFollow.action";
  448 +//加入群聊订阅号
  449 +static NSString *const CNJumpGroupSubscribeUrl = API_Host@"/Daren/group/userAddGroup.action";
  450 +//设置默认订阅号
  451 +static NSString *const CNSubscribeDefaultAddFollowsUrl = API_Host@"/Daren/group/defaultAddFollows.action";
  452 +
  453 +#pragma mark - App配置信息
  454 +// 获取最新版本信息
  455 +static NSString *const CNGetNewestVersionUrl = API_Host@"/Daren/common/getNewestVersion.action";
  456 +// 获取App配置信息(统一)
  457 +static NSString *const CNGetCommonMsgUrl = API_Host@"/Daren/common/getCommonMsg.action";
  458 +
  459 +#pragma mark 活动投票
  460 +//创建活动收费
  461 +static NSString *const CNAddGroupCharge = API_Host@"/Daren/groupManagement/addGroupCharge.action";
  462 +//邀请加群
  463 +static NSString *const CNInvitationAddgroup = API_Host@"/Daren/groupManagement/invitationAddGroup.action";
  464 +//获取通知列表
  465 +static NSString *const CNGetnoticesubs = API_Host@"/Daren/sub/getNoticeSubs.action";
  466 +// 同意加入群
  467 +static NSString *const CNAgreeAddgroup = API_Contact@"/CnliveIM/notify/addGroup.action"; //@"https://wjjim.cnlive.com/CnliveIM/notify/addGroup.action"
  468 +// 创建投票
  469 +static NSString *const CNAddvote = API_Host@"/Daren/vote/addVote.action";
  470 +//储存历任群主,再特色群创建和转让群主的时候创建
  471 +static NSString *const CNSavesuccessivegroup = API_Host@"/Daren/groupManagement/saveSuccessiveGroup.action";
  472 +
  473 +static NSString *const CNGetAgreementH5Url = API_Refund@"/json/wjj_user_terms.json";
  474 +
  475 +static NSString *const CNWeChatPayUrl = API_ThirdPay@"/Daren/pay/notifyWeChatPay.action";
  476 +
  477 +static NSString *const CNAliPayUrl = API_ThirdPay@"/Daren/pay/notifyAliPay.action";
  478 +
  479 +static NSString *const CNUnionPayUrl = API_ThirdPay@"/Daren/pay/notifyUnionPay.action";
  480 +
  481 +static NSString *const CNJSFYNotifyUrl = API_ThirdPay@"/Daren/pay/jsfyPayCallback.action";
  482 +
  483 +//获取特色群限制人数
  484 +static NSString *const CNGroupMemberLimit = @"https://wjj.ys1.cnliveimg.com/json/GroupMemberLimit.json";
  485 +
  486 +#pragma mark -
  487 +#pragma mark - 获取观察者相关
  488 +//获取观察者相关数据
  489 +static NSString *const CNWitnessPublishContent = API_Host@"/Daren/witness/getWitnessPublishContent.action";
  490 +
  491 +//删除观察者相关数据
  492 +static NSString *const CNDeleteOrUpdateWitnessURL = API_Host@"/Daren/witness/deleteOrUpdateWitnessPublish.action";
  493 +
  494 +#pragma mark 直播
  495 +
  496 +//取得相关视频
  497 +static NSString *const CNPlayerBackOrRelatedUrl = API_Classify@"/contentApi/playList";
  498 +
  499 +//取得直播数据
  500 +static NSString *const CNPlayerDetailUrl = API_Classify@"/playApi/play";
  501 +
  502 +//预约
  503 +static NSString *const CNPlayerOrderUrl = API_Classify@"/contentApi/liveAppoint";
  504 +
  505 +//获取直播活动播放信息4App
  506 +static NSString *const CNLiveActivityPlayInfo4App = API_OpenApi2@"/live_epg/getLiveActivityPlayInfo4App";
  507 +//获取直播间详情
  508 +static NSString *const CNLiveRoomInfo = API_Classify@"/playApi/play";
  509 +
  510 +static NSString *const CNNewLiveInfoWeb = API_Classify@"/contentApi/";
  511 +
  512 +//获取点播播放信息
  513 +static NSString *const CNLiveGetVodRates = API_OpenApi2@"/vod_epg/getRates";
  514 +
  515 +//活动举报
  516 +static NSString *const CNLiveActivityReportContent = API_Report@"/CnliveMobile/json/report.action";
  517 +
  518 +//订阅号关注
  519 +static NSString *const CNLiveSPAddFollow = API_Host@"/Daren/group/addFollows.action";
  520 +
  521 +//取消订阅号关注
  522 +static NSString *const CNLiveSPCancelFollow = API_Host@"/Daren/group/userCancelFollow.action";
  523 +
  524 +//订阅号取消管制
  525 +
  526 +
  527 +#pragma mark 黑名单
  528 +//校验黑名单
  529 +static NSString *const CNCheckBlackUser = API_Contact@"/CnliveIM/notify/checkBlackList.action";
  530 +//添加黑名单
  531 +static NSString *const CNBlackListAdd = API_Host@"/Daren/blackList/blackListAdd.action";
  532 +//删除黑名单
  533 +static NSString *const CNBlackListDelete = API_Host @"/Daren/blackList/blackListDelete.action";
  534 +//黑名单列表
  535 +static NSString *const CNBlackList = API_Host@"/Daren/blackList/blackListGet.action";
  536 +
  537 +#pragma mark 好友生活圈观看权限设置
  538 +//增加不让他人看
  539 +static NSString *const CNAdddonotletfsids = API_Host@"/Daren/moment/addDoNotletFsids.action";
  540 +//取消不让他人看
  541 +static NSString *const CNDeldonotletfsids = API_Host@"/Daren/moment/delDoNotletFsids.action";
  542 +//不让他看人列表
  543 +static NSString *const CNGetdonotletfsids = API_Host@"/Daren/moment/getDoNotletFsids.action";
  544 +
  545 +//增加不看他的
  546 +static NSString *const CNAddnolookfsids = API_Host@"/Daren/moment/addNoLookFsids.action";
  547 +//取消不看他的
  548 +static NSString *const CNDelnolookfsids = API_Host@"/Daren/moment/delNoLookFsids.action";
  549 +//不看他的列表
  550 +static NSString *const CNGetnolookfsids = API_Host@"/Daren/moment/getNoLookFsids.action";
  551 +//
  552 +////////////////////////////////////////////////////////
  553 +//////////// 数据库---表名
  554 +////////////////////////////////////////////////////////
  555 +
  556 +//达人个人主页表名
  557 +static NSString *const DarenHomeRealm = @"DarenHome";
  558 +
  559 +//达人列表表名
  560 +static NSString *const DarenSubsRealm = @"DarenSubs";
  561 +
  562 +//生活列表表名
  563 +static NSString *const LifeSubsRealm = @"LifeSubs";
  564 +
  565 +//系统订单列表表名
  566 +static NSString *const LifeHomeRealm = @"LifeHome";
  567 +
  568 +//朋友圈新消息表名
  569 +static NSString *const MomentNewMsgRealm = @"MomentNewMsg";
  570 +
  571 +#endif /* NetworkAPIs_h */