Commit a8f95dfbf11b5dd7cfb10792823f2c577be0d7ee
1 parent
39840d57
no message
Showing
3 changed files
with
646 additions
and
12 deletions
CNLiveEnvironment/Classes/CNLiveEnvironment.h
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | #define CNLiveEnvironment_h |
| 11 | 11 | |
| 12 | 12 | #import "CNLiveEnvironmentManager.h" |
| 13 | -#import "CNLiveEnvironmentInterface.h" | |
| 13 | +//#import "CNLiveEnvironmentInterface.h" | |
| 14 | 14 | |
| 15 | 15 | // 详细环境 |
| 16 | 16 | #define EnvironmentType [CNLiveEnvironmentManager manager].isEnvironment | ... | ... |
CNLiveEnvironment/Classes/CNLiveEnvironmentInterface.h
| ... | ... | @@ -8,5 +8,638 @@ |
| 8 | 8 | |
| 9 | 9 | #ifndef CNLiveEnvironmentInterface_h |
| 10 | 10 | #define CNLiveEnvironmentInterface_h |
| 11 | +#import "CNLiveEnvironment.h" | |
| 12 | + | |
| 13 | +//上传手机通讯录和 生成订单二维码时,DES加密key | |
| 14 | +#define kUploadContactsKey @"cnliveIm" | |
| 15 | + | |
| 16 | +#define iUploadContacts API_Contact(@"CnliveIM/notify/uploadContacts.action") | |
| 17 | +//其他投诉 | |
| 18 | +#define CNLiveCNReporthtml WjjH5_Host(@"cnReport.html")) | |
| 19 | + | |
| 20 | +//特色群活动必要说明 | |
| 21 | +#define CNActivityManageUrl API_Refund(@"term/ActivityManagement.html") | |
| 22 | + | |
| 23 | +//特色群投票必要说明 | |
| 24 | +#define CNVoteManageUrl API_Refund(@"term/VoteManagement.html") | |
| 25 | + | |
| 26 | +//订阅号特色群活动必要说明 | |
| 27 | +#define CNActivityManageSPUrl WjjH5_Host(@"cnGroupDescription.html?type=hdgl") | |
| 28 | + | |
| 29 | +//订阅号特色群投票必要说明 | |
| 30 | +#define CNVoteManageSPUrl WjjH5_Host(@"cnGroupDescription.html?type=tp") | |
| 31 | + | |
| 32 | +//获取生活号列表 | |
| 33 | +#define CNGetLifeSubsUrl API_Host(@"Daren/sub/getLifeSubs.action") | |
| 34 | + | |
| 35 | +//获取达人号列表 | |
| 36 | +#define CNGetDarenSubsUrl API_Host (@"Daren/sub/getDarenSubs.action") | |
| 37 | + | |
| 38 | +//达人号列表删除某达人 | |
| 39 | +#define CNDarenSubsDeleteDarenUrl API_Host(@"Daren/sub/deleteDarenSubs.action") | |
| 40 | + | |
| 41 | +//添加某个收藏 | |
| 42 | +#define CNDarenSubsCollectionUrl API_Host(@"Daren/stock/collection.action") | |
| 43 | + | |
| 44 | +//收藏界面删除某个收藏 | |
| 45 | +#define CNDarenSubsDeleteCollectionUrl API_Host(@"Daren/stock/deleteCollection.action") | |
| 46 | + | |
| 47 | +//达人主页 | |
| 48 | +#define CNDarenHomeUrl API_Host(@"Daren/sub/getDarenHome.action") | |
| 49 | + | |
| 50 | +//获取收藏结果详情 | |
| 51 | +#define CNDarenCollectListDataSourceUrl API_Host(@"Daren/stock/getCollectionList.action") | |
| 52 | + | |
| 53 | +//生活号主页 | |
| 54 | +#define CNLifeHomeUrl API_Host(@"Daren/sub/getLifeHome.action") | |
| 55 | + | |
| 56 | +//删除生活号 | |
| 57 | +#define CNLiveLifeDeleteUrl API_Host(@"Daren/sub/deleteLifeSubs.action") | |
| 58 | + | |
| 59 | +//通过手机号查找好友 | |
| 60 | +#define CNSearchByPhoneNumUrl API_Contact(@"CnliveIM/notify/searchByPhoneNumber.action") | |
| 61 | + | |
| 62 | + | |
| 63 | +//获取已关注的达人列表 | |
| 64 | +#define CNGetDarensUrl API_Host(@"Daren/sub/getDarens.action") | |
| 65 | + | |
| 66 | +//获取达人的粉丝列表 | |
| 67 | +#define CNGetFansUrl API_Host(@"Daren/sub/getFans.action") | |
| 68 | + | |
| 69 | +//评价列表 | |
| 70 | +#define CNGetDarenCommentUrl API_Host(@"Daren/hudong/getDarenComment.action") | |
| 71 | + | |
| 72 | +//获取达人相关信息 | |
| 73 | +#define CNGetDarenByIdUrl API_Host(@"Daren/member/getDarenById.action") | |
| 74 | + | |
| 75 | +#pragma mark - 定义消息 | |
| 76 | +//获取子群组 | |
| 77 | +#define CNGetGroupChildren API_Classify(@"contentApi/getGroupChildren") | |
| 78 | +// 退群群 | |
| 79 | +#define CNDeleteGroupMember API_Host(@"Daren/groupManagement/deleteGroupMember.action") | |
| 80 | + | |
| 81 | +//发送自定义消息 | |
| 82 | +#define CNFriendshipVerifyUrl API_Contact(@"CnliveIM/notify/custMsgPush.action") | |
| 83 | +//音视频自定义消息 | |
| 84 | +#define CNVideoOrAudioUrl API_Contact(@"CnliveIM/notify/custMsgPush.action") | |
| 85 | + | |
| 86 | +//音视频取得房间号 | |
| 87 | +#define CNVideoOrAudioGetRoomID API_Host(@"Daren/common/getRoomId.action") | |
| 88 | + | |
| 89 | +//发送文本消息 | |
| 90 | +#define CNTextMsgPushUrl API_Contact(@"CnliveIM/notify/textMsgPush.action") | |
| 91 | + | |
| 92 | +//生成二维码 | |
| 93 | +#define CNGenOrResetCodeUrl API_Host(@"Daren/qrcode/genOrResetQrCode.action") | |
| 94 | +//撤回消息 | |
| 95 | +#define CNRevokebatchsendmsg API_Contact(@"CnliveIM/notify/revokeBatchSendMsg.action") | |
| 96 | +//检验二维码 | |
| 97 | +#define CNCheckOrNewCodeUrl API_Host(@"Daren/qrcode/checkQrCode.action") | |
| 98 | +//扫码支付生成订单 | |
| 99 | +#define CNCheckAddOrderForDarenUrl API_Host(@"Daren/order/addOrder.action") | |
| 100 | +//目击者 | |
| 101 | +#define CNChecksigninfoDarenUrl API_Host(@"Daren/sign/checkSignInfo.action") | |
| 102 | +//扫码返回活动地址 | |
| 103 | +#define CNCheckQrActivityDarenUrl API_Host(@"Daren/sign/checkQrActivity.action") | |
| 104 | + | |
| 105 | +//获取Gif表情包列表 | |
| 106 | +#define CNGifFaceShopListUrl API_Host(@"Daren/section/getSectionList.action") | |
| 107 | +//获取一个表情包信息 | |
| 108 | +#define CNGetGifFacePackageUrl API_Host(@"Daren/section/getSectionDetail.action") | |
| 109 | + | |
| 110 | +#pragma mark - 地址管理相关 | |
| 111 | +//添加联系人 | |
| 112 | +#define CNAddContactUrl API_Host(@"Daren/contact/addContact.action") | |
| 113 | + | |
| 114 | +//查询联系人 | |
| 115 | +#define CNReadContacstUrl API_Host(@"Daren/contact/readContacts.action") | |
| 116 | + | |
| 117 | +//删除联系人 | |
| 118 | +#define CNDeleteContacstUrl API_Host(@"Daren/contact/deleteContact.action") | |
| 119 | + | |
| 120 | +//更新联系人 | |
| 121 | +#define CNUpdateContacstUrl API_Host(@"Daren/contact/updateContact.action") | |
| 122 | + | |
| 123 | + | |
| 124 | +#pragma mark - 订单相关 | |
| 125 | +//取消订单 | |
| 126 | +#define CNOrderCancelUrl API_Host(@"Daren/order/cancelOrder.action") | |
| 127 | + | |
| 128 | +//订单有误 | |
| 129 | +#define CNOrderErrorUrl API_Host(@"Daren/order/correctOrder.action") | |
| 130 | + | |
| 131 | +//查看订单 | |
| 132 | +#define CNOrderCheckUrl API_Host(@"Daren/order/getOrderItem.action") | |
| 133 | + | |
| 134 | +//生成订单 | |
| 135 | +#define CNOrderCreateUrl API_Host(@"Daren/order/createOrder.action") | |
| 136 | + | |
| 137 | +//修改订单 | |
| 138 | +#define CNOrderModifyUrl API_Host(@"Daren/order/modifyOrder.action") | |
| 139 | + | |
| 140 | +//确认订单 | |
| 141 | +#define CNOrderConfirmUrl API_Host(@"Daren/order/confirmOrder.action") | |
| 142 | + | |
| 143 | +//获取订单详情 | |
| 144 | +#define CNGetOrderDetailUrl API_Host(@"Daren/order/getOrderItem.action") | |
| 145 | + | |
| 146 | +//根据订单状态获取订单列表 | |
| 147 | +#define CNGetOrderListUrl API_Host(@"Daren/order/getOrdersByStatus.action") | |
| 148 | + | |
| 149 | +//申请退款 | |
| 150 | +#define CNApplyRefundUrl API_Host(@"Daren/order/applyRefund.action") | |
| 151 | + | |
| 152 | +//删除订单 | |
| 153 | +#define CNDeleteOrderUrl API_Host(@"Daren/order/deleteOrder.action") | |
| 154 | + | |
| 155 | +//催单 | |
| 156 | +#define CNRemindOrderUrl API_Contact(@"CnliveIM/notify/remind.action") | |
| 157 | + | |
| 158 | +//确认收货 | |
| 159 | +#define CNConfirmRecvUrl API_Host(@"Daren/order/confirmRecv.action") | |
| 160 | + | |
| 161 | +//评价 | |
| 162 | +#define CNCommentDarenUrl API_Host(@"Daren/hudong/commentDaren.action") | |
| 163 | + | |
| 164 | +//退款原因 | |
| 165 | +#define CNRefunfReasonUrl API_Refund(@"json/refundReason.json") | |
| 166 | + | |
| 167 | + | |
| 168 | +#pragma mark - 发布 | |
| 169 | +//发布视频 短视频接入点播云接口 | |
| 170 | +#define CNPublishVideoUrl API_OpenApi2(@"vod_epg/svInputMamForAPP") | |
| 171 | + | |
| 172 | +//发布视频 短视频上传获取bucket接口(七牛) | |
| 173 | +#define CNUploadGetBucketUrl API_OpenApi2(@"storage/getStorageInfo") | |
| 174 | + | |
| 175 | +//发布图片,上传鉴权接口(七牛) | |
| 176 | +#define CNUploadAuthForApp API_OpenApi2(@"vod_epg/getUploadAuthForApp") | |
| 177 | + | |
| 178 | +//上传视频成功的回调url | |
| 179 | +#define CNStockDarenVideoCallBackUrl API_Host(@"Daren/stock/stockDarenVideo.action") | |
| 180 | + | |
| 181 | +//发布获取上冰雪banner url | |
| 182 | +#define CNPublishGetSnowBannerUrl API_Host(@"Daren/snow/getSnowBanner.action") | |
| 183 | + | |
| 184 | + | |
| 185 | +#pragma mark - 检验群公告敏感词 | |
| 186 | +#define CNCheckFeaturedGroup API_Host(@"Daren/announcementCheck/checkFeaturedGroup.action") | |
| 187 | + | |
| 188 | +#pragma mark - 特色群组活动管理 | |
| 189 | +//获取群组活动收费记录 | |
| 190 | +#define CNActiveGroupFundsRecordsUrl API_Host(@"Daren/groupManagement/groupFundsRecords.action") | |
| 191 | + | |
| 192 | +//获取投票详情 | |
| 193 | +#define CNGetVoteMsgSourceUrl API_Host(@"Daren/vote/getVoteMsg.action") | |
| 194 | + | |
| 195 | +//获取收费详情 | |
| 196 | +#define CNQueryActivityFeeSourceUrl API_Host(@"Daren/groupManagement/queryActivityFee.action") | |
| 197 | + | |
| 198 | +//历任群主列表 | |
| 199 | +#define CNGetSuccessiveGroupListUrl API_Host(@"Daren/groupManagement/getSuccessiveGroupList.action") | |
| 200 | + | |
| 201 | +//获取投票记录的列表 | |
| 202 | +#define CNGetVotesSourceListUrl API_Host(@"Daren/vote/getVotes.action") | |
| 203 | + | |
| 204 | +//拉起支付并做定点预处理 | |
| 205 | +#define CNPayByGroupMembersUrl API_Host(@"Daren/groupManagement/payByGroupMembers.action") | |
| 206 | + | |
| 207 | +//获取支付状态 | |
| 208 | +#define CNCheckPaymentSourceUrl API_Host(@"Daren/groupManagement/checkPayment.action") | |
| 209 | + | |
| 210 | +//投票 | |
| 211 | +#define CNGroupVoteSourceUrl API_Host(@"Daren/vote/groupVote.action") | |
| 212 | + | |
| 213 | +//删除投票 | |
| 214 | +#define CNStopVoteSourceUrl API_Host(@"Daren/vote/stopVote.action") | |
| 215 | + | |
| 216 | +//获取提现的秘钥获取 | |
| 217 | +#define CNGetCurrentKeySourceUrl API_Host(@"Daren/groupManagement/getCurrentKey.action") | |
| 218 | + | |
| 219 | +//验证秘钥的发送 | |
| 220 | +#define CNSendSecretKeySourceUrl API_Host(@"Daren/groupManagement/sendSecretKey.action") | |
| 221 | + | |
| 222 | +//秘钥的验证 | |
| 223 | +#define CNGroupManagementCheckKeyUrl API_Host(@"Daren/groupManagement/checkKey.action") | |
| 224 | + | |
| 225 | +//网++支付的预支付订单生成 & 网++ 余额支付 | |
| 226 | +#define CNGroupWjjPayWjjPrePaySourceUrl API_Host(@"Daren/wjjPay/unifiedOrder.action") | |
| 227 | + | |
| 228 | +//网++ 余额支付 | |
| 229 | +#define CNGroupWjjPayWjjSourceUrl API_Host(@"Daren/wjjPay/unifiedPay.action") | |
| 230 | + | |
| 231 | +//返回公钥&随机AESKey | |
| 232 | +#define CNGroupReturnEncryptKeyUrl API_Host(@"Daren/wjjPay/getKey.action") | |
| 233 | + | |
| 234 | +//获取分享下载的地址 | |
| 235 | +#define CNShareDownloadSourceUrl API_Host(@"Daren/common/appDownLoadUrl.action") | |
| 236 | + | |
| 237 | +//获取分享达人主页的地址 | |
| 238 | +#define CNShareDarenHomeSourceUrl API_Host(@"Daren/common/shareDarenHomePage.action") | |
| 239 | + | |
| 240 | +//扫码获取棉花糖信息 | |
| 241 | +#define CNOrderMHTSourceUrl API_Host(@"Daren/order/addOrderMHT.action") | |
| 242 | + | |
| 243 | +//订阅号特色群群组转账状态查询 | |
| 244 | +#define CNQueryTransferUrl API_Host(@"Daren/groupManagement/getQueryTransfer.action") | |
| 245 | + | |
| 246 | +#pragma mark - 朋友圈 | |
| 247 | +//发布上冰雪图文 | |
| 248 | +#define CNPublishSnowUrl API_Host(@"Daren/snow/releaseSnow.action") | |
| 249 | + | |
| 250 | +//发布朋友圈 | |
| 251 | +#define CNPublishFriendsCircleUrl API_Host(@"Daren/moment/releaseMoment.action") | |
| 252 | +// 选择圈子 | |
| 253 | +#define CNGetPublishTypeListUrl API_Host(@"Daren/publishType/getPublishTypeList.action") | |
| 254 | + | |
| 255 | +//目击者发布朋友圈 | |
| 256 | +#define CNPublishWintessCircleUrl API_Host(@"Daren/witness/releaseWitness.action") | |
| 257 | +//获取朋友圈内容 | |
| 258 | +#define CNGetFriendsCircleContentUrl API_Host(@"Daren/moment/friendMoment.action") | |
| 259 | + | |
| 260 | +//获取我的朋友圈内容(我的发布记录) | |
| 261 | +#define CNGetMyCircleContentUrl API_Host(@"Daren/moment/myMoment.action") | |
| 262 | + | |
| 263 | +//朋友圈评论或回复 | |
| 264 | +#define CNFirendsCircleCommentReplyUrl API_Host(@"Daren/hudong/commentMoment.action") | |
| 265 | + | |
| 266 | +//删除朋友圈评论 | |
| 267 | +#define CNFirendsCircleCommentDeleteUrl API_OpenApi2(@"commentServices/services/commentForChat/delete" | |
| 268 | + | |
| 269 | +//删除好友时,调用接口 | |
| 270 | +#define CNDeleteFriendUrl API_Host(@"Daren/sub/deleteFriend.action") | |
| 271 | + | |
| 272 | +//删除我的朋友圈某条内容 | |
| 273 | +#define CNDeleteMyMomentItemUrl API_Host(@"Daren/moment/deleteMyMoment.action") | |
| 274 | + | |
| 275 | +//删除我的相关收藏 | |
| 276 | +#define CNDeleteMyCollectionItemUrl API_Host(@"Daren/stock/collection.action") | |
| 277 | + | |
| 278 | +//读取朋友圈某条动态的评论(含回复) | |
| 279 | +#define CNGetMomentAllCommontUrl API_OpenApi2(@"commentServices/services/commentForChat/readAll")) | |
| 280 | + | |
| 281 | +//读取朋友圈某条动态的点赞列表 | |
| 282 | +#define CNGetMomentAllFavoriteUrl API_OpenApi2(@"support/readAll")) | |
| 283 | + | |
| 284 | +//读取朋友圈某条动态的点赞列表(新接口) | |
| 285 | +#define CNGetMomentAllNEWFavoriteUrl API_OpenApi2(@"support/loadSupport" | |
| 286 | + | |
| 287 | +//朋友圈某条动态点赞 | |
| 288 | +#define CNFavoriteMomentUrl API_Host(@"Daren/moment/praiseMoment.action") | |
| 289 | + | |
| 290 | +////获取朋友圈新消息数量 | |
| 291 | +//#define CNGetMomentNewMsgCountUrl API_Host(@"Daren/moment/getNewMsg.action") | |
| 292 | + | |
| 293 | +//获取朋友圈新消息详细 | |
| 294 | +#define CNGetMomentNewMsgListUrl API_Host(@"Daren/moment/getNewMsgList.action") | |
| 295 | + | |
| 296 | +//获取朋友圈记录详情 | |
| 297 | +#define CNGetMomentDetailUrl API_Host(@"Daren/moment/getMomentDetail.action") | |
| 298 | + | |
| 299 | +//清空新消息 | |
| 300 | +#define CNDeleteNewMsgUrl API_Host(@"Daren/moment/deleteNewMsg.action") | |
| 301 | + | |
| 302 | +//个人资料相册 | |
| 303 | +#define CNLookUpMyMsgCommontUrl API_Host(@"Daren/moment/lookUpMyMsg.action") | |
| 304 | + | |
| 305 | +#pragma mark - 分类 | |
| 306 | +//分类频道(旧) | |
| 307 | +//#define CNCategoryGetChannelUrl API_Host(@"Daren/center/getChannel.action") | |
| 308 | +//分类频道(新) | |
| 309 | +#define CNCategoryGetChannelUrl API_Classify(@"contentApi/app" | |
| 310 | +//分类首页(旧 18.5.28) | |
| 311 | +//#define CNCategoryCenterPageUrl API_Host(@"Daren/center/getCenterPage.action") | |
| 312 | +//分类首页(新) | |
| 313 | +#define CNCategoryCenterPageUrl API_Host(@"Daren/classify/getNewCenterPage.action") | |
| 314 | + | |
| 315 | +//分类次级页面-达人列表 | |
| 316 | +#define CNGetDarensByCategoryUrl API_Host(@"Daren/classify/getNewDarensByCategory.action") | |
| 317 | +//#define CNGetDarensByCategoryUrl API_Host(@"Daren/center/getDarensByCategory.action") | |
| 318 | + | |
| 319 | +//分类次级页面-已关注达人列表 | |
| 320 | +#define CNGetDarensAlreadyUrl API_Host(@"Daren/classify/getDarenList.action") | |
| 321 | +//分类次级页面-未关注达人列表 | |
| 322 | +#define CNGetDarensNeverUrl API_Host(@"Daren/classify/getUnFansOrDarenBean.action") | |
| 323 | +// 关注达人 | |
| 324 | +#define CNAddDarenSubUrl API_Host(@"Daren/sub/addDarenSub.action") | |
| 325 | +// 取消关注 | |
| 326 | +#define CNCancelDarenSubUrl API_Host(@"Daren/sub/cancelDarenSub.action") | |
| 327 | +//分类-搜索 | |
| 328 | +#define CNCategorySearchDarenUrl API_Host(@"Daren/search/searchDaren.action") | |
| 329 | +//点播-获取评论列表 | |
| 330 | +#define CNGetCommentListUrl API_OpenApi2(@"commentServices/services/commentForHdBySpId/loadComment" | |
| 331 | +//点播-评论一条节目 | |
| 332 | +#define CNCommentProgrammaUrl API_OpenApi2(@"commentServices/commentForHdBySpId/insertComment" | |
| 333 | +//点播-点赞一条节目 | |
| 334 | +#define CNPraiseProgrammaUrl API_OpenApi2(@"commentServices/commentForHdBySpId/praiseComment" | |
| 335 | + | |
| 336 | +#pragma mark - 听见中国 | |
| 337 | +//获取音频播放详情 | |
| 338 | +#define CNAudioPlayerDetailUrl API_Classify(@"playApi/play" | |
| 339 | +//获取音频播放列表 | |
| 340 | +#define CNAlbumAudioListUrl API_Classify(@"contentApi/albumAudioList" | |
| 341 | +//播放进度回调 | |
| 342 | +#define CNAudioRecordScheduleUrl API_Classify(@"recordApi/end" | |
| 343 | +//历史记录列表 | |
| 344 | +#define CNAudioPastRecordsUrl API_Classify(@"recordApi/getRecords" | |
| 345 | +//删除历史记录列表 | |
| 346 | +#define CNAudioDeletePastRecordsUrl API_Classify(@"recordApi/delete" | |
| 347 | +// 简介列表 | |
| 348 | +#define CNAlbumMsgUrl API_Classify(@"contentApi/getAlbumMsg" | |
| 349 | +//节目列表 | |
| 350 | +#define CNAlbumListUrl API_Classify(@"contentApi/albumAudioList" | |
| 351 | + | |
| 352 | +#pragma mark - 体育中国 | |
| 353 | +//体育中国-约跑路线 | |
| 354 | +#define CNSportsChinaRunningRouteUrl API_Host(@"Daren/event/getEventList.action") | |
| 355 | +//体育中国-我的活动 | |
| 356 | +#define CNSportsChinaMyActivitiesUrl API_Host(@"Daren/event/getMySportActivity.action") | |
| 357 | +//体育中国-我的记录 | |
| 358 | +#define CNSportsChinaMyRecordUrl API_Host(@"Daren/event/getRouteRecordList.action") | |
| 359 | +//体育中国-活动成绩 | |
| 360 | +#define CNSportsChinaActivitiyGradeUrl API_Host(@"Daren/event/getByEventGetRecord.action") | |
| 361 | + | |
| 362 | +//体育中国-详情 | |
| 363 | +#define CNSportsChinaDetailUrl API_Host(@"Daren/event/getEventDetails.action") | |
| 364 | +//体育中国-详情-已参与人员 | |
| 365 | +#define CNSportsChinaParticipantsUrl API_Host(@"Daren/event/getSignUpList.action") | |
| 366 | +//体育中国-详情-报名 | |
| 367 | +#define CNSportsChinaSignUpUrl API_Host(@"Daren/event/signUp.action") | |
| 368 | +//体育中国-比赛-保存 | |
| 369 | +#define CNSportsChinaSaveRecordUrl API_Host(@"Daren/event/routeRecord.action") | |
| 370 | +//踩点轨迹列表 | |
| 371 | +#define CNSportsChinaShoeLineListUrl API_Host(@"Daren/event/getShoeLineList.action") | |
| 372 | +//绑定轨迹 | |
| 373 | +#define CNSportsChinaBindingShoeLineUrl API_Host(@"Daren/event/bindingShoeLine.action") | |
| 374 | +//删除轨迹 | |
| 375 | +#define CNSportsChinaDeleteShoeLineUrl API_Host(@"Daren/event/deleteShoeLine.action") | |
| 376 | +//检查轨迹 | |
| 377 | +#define CNSportsChinaCheckShoeLineUrl API_Host(@"Daren/event/checkShoeLine.action") | |
| 378 | +//上传轨迹url | |
| 379 | +#define CNSportsChinaSaveShoeLineUrl API_Host(@"Daren/event/saveShoeLine.action") | |
| 380 | + | |
| 381 | +#pragma mark - 目击者 | |
| 382 | +//新版目击者 | |
| 383 | +//获取新目击者界面数据 | |
| 384 | +#define CNGetWitnessMsgContent API_Host(@"Daren/witness/getWitnessMsg.action") | |
| 385 | +//获取作品,动态数据 | |
| 386 | +#define CNGetWitnessListContent API_Host(@"Daren/witness/getWitnessList.action") | |
| 387 | +//获取作品,动态数据 | |
| 388 | +#define CNGetWitnessCollectionListContent API_Host(@"Daren/witness/getWitnessCollectionList.action") | |
| 389 | +//获取作品,动态数据 | |
| 390 | +#define CNGetWitnessFollowsContent API_Host(@"Daren/witness/witnessFollows.action") | |
| 391 | +//收藏目击者动态 | |
| 392 | +#define CNGetWitnessCancelCollection API_Host(@"Daren/witness/witnessCollectionType.action") | |
| 393 | +//对目击者的动态进行点赞 | |
| 394 | +#define CNGetWitnessFavoriteMomentUrl API_OpenApi2(@"support/supportBySpIdForRank/insert" | |
| 395 | +//对目击者的粉丝列表数据获取 | |
| 396 | +#define CNGetWitnessFollowsMomentUrl API_Host(@"Daren/witness/getWitnessFollowsList.action") | |
| 397 | +//获取目击者广场视频列表 | |
| 398 | +#define CNGetWitnessAllListUrl API_Classify(@"contentApi/witnessNewList" | |
| 399 | +//目击者添加关注和取消关注 | |
| 400 | +#define CNGetWitnessFollowsUrl API_Host(@"Daren/witness/witnessFollows.action") | |
| 401 | +//目击者获取评论列表 | |
| 402 | +#define CNGetWitnessCommentLoadUrl API_OpenApi2(@"commentServices/services/commentForHdBySpId/loadComment" | |
| 403 | +//目击者添加评论 | |
| 404 | +#define CNGetWitnessInsertCommentUrl API_OpenApi2(@"commentServices/commentForHdBySpId/insertComment" | |
| 405 | +//目击者获取相关推荐列表 | |
| 406 | +#define CNGetWitnessRecommendListUrl API_Classify(@"playApi/moreList" | |
| 407 | +//目击者获取目击者视频列表 | |
| 408 | +#define CNGetWittnessVideoListUrl API_Classify(@"contentApi/getWitness" | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | +#pragma mark - 点播 | |
| 413 | +//视频点播 | |
| 414 | +#define CNVideoDemandUrl API_Classify(@"playApi/play" | |
| 415 | +//查看全部 | |
| 416 | +#define CNLookAtAllUrl API_Classify(@"playApi/moreList" | |
| 417 | + | |
| 418 | +#define CNCommentsListUrl API_OpenApi2(@"commentServices/services/commentForChat/loadComment" | |
| 419 | +#define CNCommentsAddUrl API_OpenApi2(@"commentServices/services/commentForChat/insert" | |
| 420 | +#define CNCommentsDeleteUrl API_OpenApi2(@"commentServices/services/commentForChat/delete" | |
| 421 | + | |
| 422 | +//获取点播302地址 | |
| 423 | +#define CNGetVodUrl API_OpenApi2(@"vod_ips/vodplayByAPP" | |
| 424 | + | |
| 425 | +//帮助与反馈上传反馈信息&图片 | |
| 426 | +#define CNUpdateFeedbackUrl API_Host(@"Daren/feedback/collectFeedback.action") | |
| 427 | +//检查扫描结果是否有效 | |
| 428 | +#define CNCheckQrCodeUrl API_Host(@"Daren/qrcode/checkQrCodeUrl.action") | |
| 429 | + | |
| 430 | +// Native 分类 | |
| 431 | +// 获取所有频道列表 | |
| 432 | +#define CNAllChannelList @"http://intertv.cnlive.com/zgw/api/channellist" | |
| 433 | +//App配置信息 | |
| 434 | +#define AppStart @"http://intertv.cnlive.com/zgw/api/appstart" | |
| 435 | + | |
| 436 | +#pragma mark - 申请目击者 | |
| 437 | +// 目击者身份信息申请 | |
| 438 | +#define CNApplyWitnessUrl API_Host(@"Daren/witness/applyWitness.action") | |
| 439 | +// 目击者身份校验 | |
| 440 | +#define CNCheckWitnessUrl API_Host(@"Daren/witness/checkWitness.action") | |
| 441 | +//获取订阅号主页内容 | |
| 442 | +#define CNGetSpHomePageInfoUrl API_Classify"/contentApi/getSpInfo" | |
| 443 | +//获取订阅号分页内容 | |
| 444 | +#define CNGetSpContentListUrl API_Classify"/contentApi/getSpContentList" | |
| 445 | +//关注订阅号 | |
| 446 | +#define CNGetSpAddFollowsUrl API_Host(@"Daren/group/addFollows.action") | |
| 447 | +//取消关注订阅号 | |
| 448 | +#define CNGetSpUserCancelFollowUrl API_Host(@"Daren/group/userCancelFollow.action") | |
| 449 | +//加入群聊 | |
| 450 | +#define CNGetSpUserAddGroupUrl API_Host(@"Daren/group/userAddGroup.action") | |
| 451 | +//获取全部粉丝 | |
| 452 | +#define CNGetSPAllFansUrl API_Host(@"Daren/group/getFans.action") | |
| 453 | +//订阅号加入群聊 | |
| 454 | +#define CNGetUserAddGroupUrl API_Host(@"Daren/group/userAddGroup.action") | |
| 455 | + | |
| 456 | +#pragma mark - 我的 | |
| 457 | +// 用户uid检测达人状态 | |
| 458 | +#define CNCheckDarenUrl API_Host(@"Daren/member/checkDaren.action") | |
| 459 | +// 获取我的余额 | |
| 460 | +#define CNGetBalanceUrl API_Host(@"Daren/member/getBalance.action") | |
| 461 | +// 获取交易记录 | |
| 462 | +#define CNGetTradingRecordUrl API_Host(@"Daren/transaction/getTransactionRecord.action") | |
| 463 | +// 获取与商户的交易记录 | |
| 464 | +#define CNViewTransferRecordUrl API_Host(@"Daren/groupManagement/viewTransferRecord.action") | |
| 465 | +// 交易记录详情 | |
| 466 | +#define CNGetRecordSourceMsgUrl API_Host(@"Daren/transaction/getRecordSourceDetail.action") | |
| 467 | +// 是否有支付密码 | |
| 468 | +#define CNPasswordIsExistingUrl API_Host(@"Daren/wjjPay/passwordIsExisting.action") | |
| 469 | +// 设置支付密码 | |
| 470 | +#define CNSetPasswordUrl API_Host(@"Daren/wjjPay/setPassword.action") | |
| 471 | +// 更改密码时发送验证码 | |
| 472 | +#define CNSendSMSSetPasswordUrl API_Host(@"Daren/sms/sendSMS.action") | |
| 473 | +// 更改密码时验证验证码 | |
| 474 | +#define CNCheckVerifyCodeSetPasswordUrl API_Host(@"Daren/sms/checkVerifyCode.action") | |
| 475 | +// 查看是否允许好友查看生活圈的状态 | |
| 476 | +#define CNIsAllowFindStrangerSwitchUrl API_Host(@"Daren/moment/findStrangerSwitch.action") | |
| 477 | +// 切换是否允许好友查看生活圈 | |
| 478 | +#define CNSwitchAllowStrangerUrl API_Host(@"Daren/moment/strangerSwitch.action") | |
| 479 | + | |
| 480 | +#pragma mark - 积分 | |
| 481 | +#define CNIntegralGetTasksUrl API_Host(@"Daren/integral/getTasks.action")//任务列表 | |
| 482 | +#define CNIntegralAddUrl API_Host(@"Daren/integral/addTask.action")//增加积分 | |
| 483 | +#define CNIntegralDetailsUrl API_Host(@"Daren/integral/integralRecord.action")//积分明细 | |
| 484 | +#define CNIntegralSignInUrl API_Host(@"Daren/integral/checkIn.action")//签到 | |
| 485 | +#define CNCancellationUrl API_Host(@"Daren/common/cancellationAccount.action")//注销账号 | |
| 486 | + | |
| 487 | +#pragma mark - 隐私 | |
| 488 | +#define CNPrivacyNoLetHimSeeListUrl API_Host(@"Daren/moment/getDoNotletFsids.action")//不让他看列表 | |
| 489 | +#define CNPrivacyNoSeeHimListUrl API_Host(@"Daren/moment/getNoLookFsids.action")//不看他列表 | |
| 490 | +#define CNPrivacyNoLetHimSeeAddUrl API_Host(@"Daren/moment/addDoNotletFsids.action")//不让他看增加 | |
| 491 | +#define CNPrivacyNoSeeHimAddUrl API_Host(@"Daren/moment/addNoLookFsids.action")//不看他增加 | |
| 492 | + | |
| 493 | +#pragma mark - 订阅号 | |
| 494 | +//选择你感兴趣的内容 | |
| 495 | +#define CNInterestedContentUrl API_Host(@"Daren/group/getSpTags.action") | |
| 496 | +//推荐订阅号 | |
| 497 | +#define CNRecommendedSubscribeUrl API_Host(@"Daren/group/getSubscriptionNumbers.action") | |
| 498 | +//推荐订阅号完成 | |
| 499 | +#define CNRecommendedSubscribeFinishUrl API_Host(@"Daren/group/userFollowAddGroup.action") | |
| 500 | +//全部订阅号(不传sid) | |
| 501 | +#define CNAllSubscribeUrl API_Host(@"Daren/group/getMoreSubscriptionNumbers.action") | |
| 502 | +//全部订阅号(传sid) | |
| 503 | +#define CNAllSubscribeSidUrl API_Host(@"Daren/group/getCategorySubscriptionNumbers.action") | |
| 504 | +//关注订阅号 | |
| 505 | +#define CNAddAttentionSubscribeUrl API_Host(@"Daren/group/addFollows.action") | |
| 506 | +//取消关注订阅号 | |
| 507 | +#define CNCancelAttentionSubscribeUrl API_Host(@"Daren/group/userCancelFollow.action") | |
| 508 | +//加入群聊订阅号 | |
| 509 | +#define CNJumpGroupSubscribeUrl API_Host(@"Daren/group/userAddGroup.action") | |
| 510 | +//设置默认订阅号 | |
| 511 | +#define CNSubscribeDefaultAddFollowsUrl API_Host(@"Daren/group/defaultAddFollows.action") | |
| 512 | +//获取推荐的订阅号推荐内容 | |
| 513 | +#define CNLiveSubscribeMsgUrl API_Host(@"Daren/group/subscribeMsg.action") | |
| 514 | +//获取已关注的订阅号列表 | |
| 515 | +#define CNLiveOfficialAccountUrl API_Host(@"Daren/group/officialAccount.action") | |
| 516 | +//订阅号获取预约列表 | |
| 517 | +#define CNLiveContentApiLiveListUrl API_Classify(@"contentApi/getLiveList" | |
| 518 | +//预约订阅号直播 | |
| 519 | +#define CNLiveContentApiLiveAppointUrl API_Classify(@"contentApi/liveAppoint" | |
| 520 | +//订阅号热推 | |
| 521 | +#define CNSubscribeHotPushUrl API_Classify(@"contentApi/getHotContent" | |
| 522 | +//一键关注 | |
| 523 | +#define CNSubscribeOneKeyConcernUrl API_Host(@"Daren/group/oneKeyConcern.action") | |
| 524 | + | |
| 525 | +#pragma mark - App配置信息 | |
| 526 | +// 获取最新版本信息 | |
| 527 | +#define CNGetNewestVersionUrl API_Host(@"Daren/common/getNewestVersion.action") | |
| 528 | +// 获取App配置信息(统一) | |
| 529 | +#define CNGetCommonMsgUrl API_Host(@"Daren/common/getCommonMsg.action") | |
| 530 | + | |
| 531 | +#pragma mark 活动投票 | |
| 532 | +//创建活动收费 | |
| 533 | +#define CNAddGroupCharge API_Host(@"Daren/groupManagement/addGroupCharge.action") | |
| 534 | +//邀请加群 | |
| 535 | +#define CNInvitationAddgroup API_Host(@"Daren/groupManagement/invitationAddGroup.action") | |
| 536 | +//获取通知列表 | |
| 537 | +#define CNGetnoticesubs API_Host(@"Daren/sub/getNoticeSubs.action") | |
| 538 | +// 同意加入群 | |
| 539 | +#define CNAgreeAddgroup API_Contact(@"CnliveIM/notify/addGroup.action") //@"https://wjjim.cnlive.com/CnliveIM/notify/addGroup.action") | |
| 540 | +// 创建投票 | |
| 541 | +#define CNAddvote API_Host(@"Daren/vote/addVote.action") | |
| 542 | +//储存历任群主,再特色群创建和转让群主的时候创建 | |
| 543 | +#define CNSavesuccessivegroup API_Host(@"Daren/groupManagement/saveSuccessiveGroup.action") | |
| 544 | + | |
| 545 | +#define CNGetAgreementH5Url API_Refund(@"json/wjj_user_terms.json") | |
| 546 | + | |
| 547 | +#define CNWeChatPayUrl API_ThirdPay(@"Daren/pay/notifyWeChatPay.action") | |
| 548 | + | |
| 549 | +#define CNAliPayUrl API_ThirdPay(@"Daren/pay/notifyAliPay.action") | |
| 550 | + | |
| 551 | +#define CNUnionPayUrl API_ThirdPay(@"Daren/pay/notifyUnionPay.action") | |
| 552 | + | |
| 553 | +#define CNJSFYNotifyUrl API_ThirdPay(@"Daren/pay/jsfyPayCallback.action") | |
| 554 | + | |
| 555 | +//获取特色群限制人数 | |
| 556 | +#define CNGroupMemberLimit @"https://wjj.ys1.cnliveimg.com/json/GroupMemberLimit.json") | |
| 557 | + | |
| 558 | +#pragma mark - 获取观察者相关 | |
| 559 | +//获取观察者相关数据 | |
| 560 | +#define CNWitnessPublishContent API_Host(@"Daren/witness/getWitnessPublishContent.action") | |
| 561 | + | |
| 562 | +//删除观察者相关数据 | |
| 563 | +#define CNDeleteOrUpdateWitnessURL API_Host(@"Daren/witness/deleteOrUpdateWitnessPublish.action") | |
| 564 | + | |
| 565 | +#pragma mark - 直播 | |
| 566 | + | |
| 567 | +//取得相关视频 | |
| 568 | +#define CNPlayerBackOrRelatedUrl API_Classify(@"contentApi/playList" | |
| 569 | + | |
| 570 | +//取得直播数据 | |
| 571 | +#define CNPlayerDetailUrl API_Classify(@"playApi/play" | |
| 572 | + | |
| 573 | +//预约 | |
| 574 | +#define CNPlayerOrderUrl API_Classify(@"contentApi/liveAppoint" | |
| 575 | + | |
| 576 | +//获取直播活动播放信息4App | |
| 577 | +#define CNLiveActivityPlayInfo4App API_OpenApi2(@"live_epg/getLiveActivityPlayInfo4App" | |
| 578 | +//获取直播间详情 | |
| 579 | +#define CNLiveRoomInfo API_Classify(@"playApi/play" | |
| 580 | + | |
| 581 | +#define CNNewLiveInfoWeb API_Classify(@"contentApi/" | |
| 582 | + | |
| 583 | +//获取点播播放信息 | |
| 584 | +#define CNLiveGetVodRates API_OpenApi2(@"vod_epg/getRates" | |
| 585 | + | |
| 586 | +//活动举报 | |
| 587 | +#define CNLiveActivityReportContent API_Report(@"CnliveMobile/json/report.action") | |
| 588 | + | |
| 589 | +//订阅号关注 | |
| 590 | +#define CNLiveSPAddFollow API_Host(@"Daren/group/addFollows.action") | |
| 591 | + | |
| 592 | +//取消订阅号关注 | |
| 593 | +#define CNLiveSPCancelFollow API_Host(@"Daren/group/userCancelFollow.action") | |
| 594 | + | |
| 595 | +//订阅号取消管制 | |
| 596 | + | |
| 597 | +//视频下载地址 | |
| 598 | +#define CNLiveVideoDownloadUrl API_OpenApi2(@"vod_ips/vodplayByAPP" | |
| 599 | + | |
| 600 | +#pragma mark - 黑名单 | |
| 601 | +//校验黑名单 | |
| 602 | +#define CNCheckBlackUser API_Contact(@"CnliveIM/notify/checkBlackList.action") | |
| 603 | +//添加黑名单 | |
| 604 | +#define CNBlackListAdd API_Host(@"Daren/blackList/blackListAdd.action") | |
| 605 | +//删除黑名单 | |
| 606 | +#define CNBlackListDelete API_Host (@"Daren/blackList/blackListDelete.action") | |
| 607 | +//黑名单列表 | |
| 608 | +#define CNBlackList API_Host(@"Daren/blackList/blackListGet.action") | |
| 609 | + | |
| 610 | +#pragma mark - 好友生活圈观看权限设置 | |
| 611 | +//增加不让他人看 | |
| 612 | +#define CNAdddonotletfsids API_Host(@"Daren/moment/addDoNotletFsids.action") | |
| 613 | +//取消不让他人看 | |
| 614 | +#define CNDeldonotletfsids API_Host(@"Daren/moment/delDoNotletFsids.action") | |
| 615 | +//不让他看人列表 | |
| 616 | +#define CNGetdonotletfsids API_Host(@"Daren/moment/getDoNotletFsids.action") | |
| 617 | + | |
| 618 | +//增加不看他的 | |
| 619 | +#define CNAddnolookfsids API_Host(@"Daren/moment/addNoLookFsids.action") | |
| 620 | +//取消不看他的 | |
| 621 | +#define CNDelnolookfsids API_Host(@"Daren/moment/delNoLookFsids.action") | |
| 622 | +//不看他的列表 | |
| 623 | +#define CNGetnolookfsids API_Host(@"Daren/moment/getNoLookFsids.action") | |
| 624 | +// | |
| 625 | +//////////////////////////////////////////////////////// | |
| 626 | +//////////// 数据库---表名 | |
| 627 | +//////////////////////////////////////////////////////// | |
| 628 | + | |
| 629 | +//达人个人主页表名 | |
| 630 | +#define DarenHomeRealm @"DarenHome" | |
| 631 | + | |
| 632 | +//达人列表表名 | |
| 633 | +#define DarenSubsRealm @"DarenSubs" | |
| 634 | + | |
| 635 | +//生活列表表名 | |
| 636 | +#define LifeSubsRealm @"LifeSubs" | |
| 637 | + | |
| 638 | +//系统订单列表表名 | |
| 639 | +#define LifeHomeRealm @"LifeHome" | |
| 640 | + | |
| 641 | +//朋友圈新消息表名 | |
| 642 | +#define MomentNewMsgRealm @"MomentNewMsg" | |
| 643 | + | |
| 11 | 644 | |
| 12 | 645 | #endif /* CNLiveEnvironmentInterface_h */ | ... | ... |
Example/CNLiveEnvironment/XWAppDelegate.m
| ... | ... | @@ -16,19 +16,20 @@ |
| 16 | 16 | { |
| 17 | 17 | // Override point for customization after application launch. |
| 18 | 18 | [CNLiveEnvironmentManager setEnvironment:CNLiveEnvironmentDebugInHouse]; |
| 19 | - NSLog(@"%@",EnvironmentDesc); | |
| 20 | - NSLog(@"%@",ShareSDKAppId_Share); | |
| 21 | - NSLog(@"%d",TestEnvironment); | |
| 22 | - NSLog(@"%@",API_Host(@"asd")); | |
| 23 | - NSLog(@"%@",AppId); | |
| 24 | - NSLog(@"%@",AppKey); | |
| 25 | - NSLog(@"%@",AppSecret); | |
| 19 | +// NSLog(@"%@",EnvironmentDesc); | |
| 20 | +// NSLog(@"%@",ShareSDKAppId_Share); | |
| 21 | +// NSLog(@"%d",TestEnvironment); | |
| 22 | +// NSLog(@"%@",API_Host(@"asd")); | |
| 23 | +// NSLog(@"%@",AppId); | |
| 24 | +// NSLog(@"%@",AppKey); | |
| 25 | + NSLog(@"%@",CNStockDarenVideoCallBackUrl); | |
| 26 | 26 | |
| 27 | 27 | [CNLiveEnvironmentManager setEnvironment:CNLiveEnvironmentProductionAppStore]; |
| 28 | - NSLog(@"%@",EnvironmentDesc); | |
| 29 | - NSLog(@"%@",ShareSDKAppId_Share); | |
| 30 | - NSLog(@"%d",TestEnvironment); | |
| 31 | - NSLog(@"%@",API_Host(@"asd")); | |
| 28 | +// NSLog(@"%@",EnvironmentDesc); | |
| 29 | +// NSLog(@"%@",ShareSDKAppId_Share); | |
| 30 | +// NSLog(@"%d",TestEnvironment); | |
| 31 | +// NSLog(@"%@",API_Host(@"asd")); | |
| 32 | + NSLog(@"%@",CNStockDarenVideoCallBackUrl); | |
| 32 | 33 | |
| 33 | 34 | return YES; |
| 34 | 35 | } | ... | ... |