Commit 4aa2d7290203705cc5f5c00cfbada9efa6958bfe

Authored by 王军波
1 parent 1cb2a9eb

更换测试统计聊天SDK

LiveVideoCloud.xcodeproj/project.pbxproj
... ... @@ -254,12 +254,13 @@
254 254 D2EBC8961F0241BC00F198FB /* CNLiveMsgTools.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC88F1F0241AD00F198FB /* CNLiveMsgTools.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
255 255 D2EBC8991F025D4700F198FB /* LVCVodPlayerFullController.m in Sources */ = {isa = PBXBuildFile; fileRef = D2EBC8981F025D4700F198FB /* LVCVodPlayerFullController.m */; };
256 256 D2EBC89B1F03421C00F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */; };
257   - D2EBC89C1F03428700F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */; };
258   - D2EBC89D1F03428700F198FB /* CNLiveChatManager.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
259 257 D2EBC8A01F034C5500F198FB /* LVCCommentView.m in Sources */ = {isa = PBXBuildFile; fileRef = D2EBC89F1F034C5500F198FB /* LVCCommentView.m */; };
260 258 D2EBC8A21F034F3C00F198FB /* CNLivePlayerSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */; };
261 259 D2EBC8A31F034F4000F198FB /* CNLivePlayerSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */; };
262 260 D2EBC8A41F034F4000F198FB /* CNLivePlayerSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
  261 + D2EBC8A61F03926E00F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */; };
  262 + D2EBC8A71F03927200F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */; };
  263 + D2EBC8A81F03927200F198FB /* CNLiveChatManager.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
263 264 /* End PBXBuildFile section */
264 265  
265 266 /* Begin PBXContainerItemProxy section */
... ... @@ -288,7 +289,7 @@
288 289 files = (
289 290 D2EBC8A41F034F4000F198FB /* CNLivePlayerSDK.framework in Embed Frameworks */,
290 291 D2EBC8961F0241BC00F198FB /* CNLiveMsgTools.framework in Embed Frameworks */,
291   - D2EBC89D1F03428700F198FB /* CNLiveChatManager.framework in Embed Frameworks */,
  292 + D2EBC8A81F03927200F198FB /* CNLiveChatManager.framework in Embed Frameworks */,
292 293 );
293 294 name = "Embed Frameworks";
294 295 runOnlyForDeploymentPostprocessing = 0;
... ... @@ -801,10 +802,11 @@
801 802 D2EBC88F1F0241AD00F198FB /* CNLiveMsgTools.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveMsgTools.framework; sourceTree = "<group>"; };
802 803 D2EBC8971F025D4700F198FB /* LVCVodPlayerFullController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LVCVodPlayerFullController.h; sourceTree = "<group>"; };
803 804 D2EBC8981F025D4700F198FB /* LVCVodPlayerFullController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LVCVodPlayerFullController.m; sourceTree = "<group>"; };
804   - D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveChatManager.framework; sourceTree = "<group>"; };
  805 + D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CNLiveChatManager.framework; path = /Users/cnlive/Desktop/Group/LiveVideoCloud/LiveVideoCloud/Classes/CNLiveSDK/CNLiveChatManager.framework; sourceTree = "<absolute>"; };
805 806 D2EBC89E1F034C5500F198FB /* LVCCommentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LVCCommentView.h; sourceTree = "<group>"; };
806 807 D2EBC89F1F034C5500F198FB /* LVCCommentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LVCCommentView.m; sourceTree = "<group>"; };
807 808 D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLivePlayerSDK.framework; sourceTree = "<group>"; };
  809 + D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveChatManager.framework; sourceTree = "<group>"; };
808 810 /* End PBXFileReference section */
809 811  
810 812 /* Begin PBXFrameworksBuildPhase section */
... ... @@ -814,13 +816,14 @@
814 816 files = (
815 817 D2393D281F02572100D3EE17 /* CoreTelephony.framework in Frameworks */,
816 818 D2393D261F0256FE00D3EE17 /* libstdc++.tbd in Frameworks */,
  819 + D2EBC8A61F03926E00F198FB /* CNLiveChatManager.framework in Frameworks */,
  820 + D2EBC8A71F03927200F198FB /* CNLiveChatManager.framework in Frameworks */,
817 821 D2393D2C1F02682000D3EE17 /* CNLiveUserSystemSDK.framework in Frameworks */,
818 822 D2393D241F0256E900D3EE17 /* libz.tbd in Frameworks */,
819 823 D2393D221F0256DC00D3EE17 /* libc++.tbd in Frameworks */,
820 824 D2393D201F0256AA00D3EE17 /* libsqlite3.tbd in Frameworks */,
821 825 D2EBC89B1F03421C00F198FB /* CNLiveChatManager.framework in Frameworks */,
822 826 D25BF8A31E80C4FC007FB138 /* Accelerate.framework in Frameworks */,
823   - D2EBC89C1F03428700F198FB /* CNLiveChatManager.framework in Frameworks */,
824 827 D2EBC8A31F034F4000F198FB /* CNLivePlayerSDK.framework in Frameworks */,
825 828 D2393D0E1F0250A100D3EE17 /* libWeChatSDK.a in Frameworks */,
826 829 D2393D1D1F0250A700D3EE17 /* libWeiboSDK.a in Frameworks */,
... ... @@ -1086,8 +1089,8 @@
1086 1089 812E504E1E7699B9004F5FCD /* CNLiveSDK */ = {
1087 1090 isa = PBXGroup;
1088 1091 children = (
  1092 + D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */,
1089 1093 D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */,
1090   - D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */,
1091 1094 D2EBC88F1F0241AD00F198FB /* CNLiveMsgTools.framework */,
1092 1095 D2393D2B1F02682000D3EE17 /* CNLiveUserSystemSDK.framework */,
1093 1096 D25BF87C1E7B8C78007FB138 /* KSYGPUResource.bundle */,
... ...
LiveVideoCloud/Classes/CNLiveSDK/CNLiveChatManager.framework/CNLiveChatManager
No preview for this file type
LiveVideoCloud/Classes/CNLiveSDK/CNLiveChatManager.framework/Headers/CNLiveChatManager.h
... ... @@ -107,7 +107,7 @@
107 107  
108 108  
109 109 /**
110   - 初始化SDK方法
  110 + 初始化SDK方法(同上,区别:可以选择测试环境/上线环境)
111 111  
112 112 @param appKey 从视讯云平台获取到的appKey
113 113 @param appId 从视讯云平台获取到的appId
... ...
LiveVideoCloud/Classes/Sections/homeSections/Controller/LVCVodPlayerListController.m
... ... @@ -45,10 +45,14 @@ static NSString *vodCellId = @&quot;vodCellId&quot;;
45 45  
46 46 _failedView.hidden = YES;
47 47  
48   - NSDictionary *parameter = @{@"appId": UserAppId
  48 + NSInteger time = [[NSDate date] timeIntervalSince1970];
  49 + NSString *timeString = [NSString stringWithFormat:@"%ld", (long)time];
  50 + NSDictionary *parameter = @{
  51 + @"appId" : UserAppId,
  52 + @"timestamp": timeString
49 53 };
50 54  
51   - [[AFHTTPRequestOperationManager manager] POST:@"http://test.open.cnlive.com/openapi/api2/vod_epg/getVodListInfo4App" parameters:parameter success:^(AFHTTPRequestOperation *operation, id responseObject) {
  55 + [[AFHTTPRequestOperationManager manager] POST:@"http://test.open.cnlive.com/openapi/api2/vod_epg/getVodListInfo4App" parameters:[parameter addParameters] success:^(AFHTTPRequestOperation *operation, id responseObject) {
52 56  
53 57 responseObject = [responseObject validatedDictionary];
54 58  
... ... @@ -179,21 +183,6 @@ static NSString *vodCellId = @&quot;vodCellId&quot;;
179 183 self.tableView.scrollsToTop = scrollToTop;
180 184 }
181 185  
182   -#pragma mark ------------------------------ 分割线 ----------------------------------------------
183   -- (NSDictionary *)addParameters:(NSDictionary *)dict {
184   -
185   - if (![dict isKindOfClass:[NSDictionary class]]) {
186   - return dict;
187   - }
188   - if (!dict) {
189   - return @{@"appid": JBAppId, @"plat": @"i", @"version": JBAppVersion};
190   - } else {
191   - NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithDictionary:dict];
192   - [dic addEntriesFromDictionary:@{@"appid": JBAppId, @"plat": @"i", @"version": JBAppVersion}];
193   - return [[NSDictionary alloc] initWithDictionary:dic];
194   - }
195   -}
196   -
197 186 - (void)didReceiveMemoryWarning {
198 187 [super didReceiveMemoryWarning];
199 188 // Dispose of any resources that can be recreated.
... ...
LiveVideoCloud/PrefixHeader.pch
... ... @@ -79,8 +79,8 @@
79 79 #define UserAppKey @"4c8658abc5d66f270f9bf5dcd1ef11e3597fab4c4e0af9"//@"13c6f0ad6f459cd479834b0b39cff99c6cf20c970815bb"//
80 80 #define UserAppSceret @"c2faeb120f0ea2e2d47020d4b03cb8a93bed2585897a94"//@"14c887b76ec2ecdf7083fb4c62808f13f6ab77a0f9dfec"//
81 81  
82   -#define JBAppId @"hdtv"
83   -#define JBAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] ///debug用 "CFBundleVersion"
  82 +//#define JBAppId @"hdtv"
  83 +//#define JBAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] ///debug用 "CFBundleVersion"
84 84  
85 85 //#define UserAppId @"60_itax25eq82"
86 86 //#define UserAppKey @"55a25a7f7e1124937fba06c82999d9a7c18379e2d24784"
... ...