Commit fb2282db1e0f1b449c86fce78b1234bfefd377d1

Authored by zhangxiaowen
1 parent 3613f54d

no message

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