Commit 3321af51 3321af514377e1ce7490581c9a45765634b5918f by 金学艇

解决游戏不能下载问题

1 parent d99d1621
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
192 "array": [ 192 "array": [
193 0, 193 0,
194 0, 194 0,
195 271.0606994628906, 195 265.0037841796875,
196 0, 196 0,
197 0, 197 0,
198 0, 198 0,
...@@ -5376,8 +5376,8 @@ ...@@ -5376,8 +5376,8 @@
5376 } 5376 }
5377 ], 5377 ],
5378 "_useOriginalSize": false, 5378 "_useOriginalSize": false,
5379 "_string": "v1.0.0.2020033017", 5379 "_string": "v1.1.0.2020050813",
5380 "_N$string": "v1.0.0.2020033017", 5380 "_N$string": "v1.1.0.2020050813",
5381 "_fontSize": 24, 5381 "_fontSize": 24,
5382 "_lineHeight": 24, 5382 "_lineHeight": 24,
5383 "_enableWrapText": true, 5383 "_enableWrapText": true,
......
...@@ -243,10 +243,10 @@ cc.Class({ ...@@ -243,10 +243,10 @@ cc.Class({
243 cc.log("向下滑动:" + fiFocusTarget.node.name); 243 cc.log("向下滑动:" + fiFocusTarget.node.name);
244 this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_DOWN, 1.0, oScrollParameter); 244 this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_DOWN, 1.0, oScrollParameter);
245 } 245 }
246 if (this._fiCurrentFocus.node.name == "Play" && this._bShowProgress) { //暂时隐藏选集框,否则点击单曲循环会出现问题 246 // if (this._fiCurrentFocus.node.name == "Play" && this._bShowProgress) { //暂时隐藏选集框,否则点击单曲循环会出现问题
247 this.showSelectGatherArea(); 247 // this.showSelectGatherArea();
248 return; 248 // return;
249 } 249 // }
250 } 250 }
251 if (event.keyCode == cc.macro.KEY.left || event.keyCode == Common.ANDROID_KEY.left) { 251 if (event.keyCode == cc.macro.KEY.left || event.keyCode == Common.ANDROID_KEY.left) {
252 if (this._fiCurrentFocus.node.name == "Nothing") { 252 if (this._fiCurrentFocus.node.name == "Nothing") {
...@@ -647,26 +647,7 @@ cc.Class({ ...@@ -647,26 +647,7 @@ cc.Class({
647 }, 647 },
648 nextMedia: function () { 648 nextMedia: function () {
649 try { 649 try {
650 // if(this._bCuttingNextMedia){ 650 this.onCheckQueryNewTV();
651 // return;
652 // }
653 //this._bCuttingNextMedia = true;
654 if (!this._bMediaFree) {
655 //播放完一首第一首变成最后一首 下一首直接变成第一首
656 var oFirst = this._aPlayList.shift();
657 this._aPlayList.splice(this._aPlayList.length - 1, 0, oFirst);
658 this.rankMedia(oFirst.id, this._aPlayList.length - 2);
659
660
661 this._strRequestMediaId = this._aPlayList[0].id;
662 this.renderPlayList();
663 //歌曲要置顶
664 this.rankMedia(this._strRequestMediaId, 0);
665 this._ComOperation.end();
666 this.getPlayURLAndPlay();
667 } else {
668 this.backAScene();
669 }
670 } catch (error) { 651 } catch (error) {
671 if (cc.sys.isNative) { 652 if (cc.sys.isNative) {
672 jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "nextMedia Error in VarietyVideo==>" + error); 653 jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "nextMedia Error in VarietyVideo==>" + error);
......
...@@ -249,7 +249,7 @@ cc.Class({ ...@@ -249,7 +249,7 @@ cc.Class({
249 this.videoPlayer.setOnCompletionListener(function () { //监听完成播放 fix jerry 249 this.videoPlayer.setOnCompletionListener(function () { //监听完成播放 fix jerry
250 this.oScene._cLog.screenI("Media Complete!!!!!!!"); 250 this.oScene._cLog.screenI("Media Complete!!!!!!!");
251 this.duration = 0; 251 this.duration = 0;
252 // this.oScene.nextMedia && this.oScene.nextMedia(); //暂时屏蔽 252 this.oScene.nextMedia && this.oScene.nextMedia(); //暂时屏蔽
253 }.bind(this)); 253 }.bind(this));
254 // this.videoPlayer.node.on( 254 // this.videoPlayer.node.on(
255 // 'completed', 255 // 'completed',
......
...@@ -31,8 +31,11 @@ cc.Class({ ...@@ -31,8 +31,11 @@ cc.Class({
31 this._oInit = {}; 31 this._oInit = {};
32 this.options = {}; 32 this.options = {};
33 this._bCollected = false; 33 this._bCollected = false;
34 this._iStatus = 1; //节目是否下线
35 this._fileCode = "";
34 this._oSceneContext.focusPath = "ButtonFullScreen"; 36 this._oSceneContext.focusPath = "ButtonFullScreen";
35 this._oSceneContext.currentPage = 1; 37 this._oSceneContext.currentPage = 1;
38 this._oSceneContext.episodeIndex = 0;
36 39
37 cc.find("FullDesc", this.node).zIndex = 100; 40 cc.find("FullDesc", this.node).zIndex = 100;
38 41
...@@ -60,6 +63,18 @@ cc.Class({ ...@@ -60,6 +63,18 @@ cc.Class({
60 this._cApplication.setBackStatus(false); 63 this._cApplication.setBackStatus(false);
61 } 64 }
62 65
66 let aSceneContext = this._cApplication.getSceneContext();
67 let aSceneParameter = this._cApplication.getSceneParameter();
68 cc.log("gameDetail->aSceneParameter..." + JSON.stringify(aSceneParameter));
69 if (aSceneParameter.length) {
70 this._oSceneContext._detailJson = aSceneParameter[aSceneParameter.length - 1].detailJson;
71 } else if (aSceneParameter) {
72 this._oSceneContext._detailJson = aSceneParameter.detailJson;
73 }
74
75 cc.log("类名:" + this._oSceneContext._detailJson);
76
77
63 //剧集分类 78 //剧集分类
64 this._nodeNaviListWrapper = cc.find("NaviArea/NaviListWrapper", this.node); 79 this._nodeNaviListWrapper = cc.find("NaviArea/NaviListWrapper", this.node);
65 this._nodeNaviList = cc.find('NaviList', this._nodeNaviListWrapper); 80 this._nodeNaviList = cc.find('NaviList', this._nodeNaviListWrapper);
...@@ -96,6 +111,9 @@ cc.Class({ ...@@ -96,6 +111,9 @@ cc.Class({
96 111
97 nodeEpisodeCell.x = nodeEpisodeCell.width / 2 + (i) * (nodeEpisodeCell.width + 12); 112 nodeEpisodeCell.x = nodeEpisodeCell.width / 2 + (i) * (nodeEpisodeCell.width + 12);
98 cc.find("EpisodeNum/Text", nodeEpisodeCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name; 113 cc.find("EpisodeNum/Text", nodeEpisodeCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name;
114 if (i == this._oSceneContext.episodeIndex) {
115 cc.find("EpisodeNum/Text", nodeEpisodeCell).color = new cc.Color(255, 204, 1);
116 }
99 } 117 }
100 118
101 if (!this._bIsNaviDataInit) { 119 if (!this._bIsNaviDataInit) {
...@@ -126,6 +144,7 @@ cc.Class({ ...@@ -126,6 +144,7 @@ cc.Class({
126 nodeNaviListCell.x = nodeNaviListCell.width / 2 + (i - 1) * (nodeNaviListCell.width + 12); 144 nodeNaviListCell.x = nodeNaviListCell.width / 2 + (i - 1) * (nodeNaviListCell.width + 12);
127 i == Math.ceil(sum) ? nodeNaviListCell.getChildByName('Text').getComponent(cc.Label).string = (20 * i - 19) + "-" + this._oEpisode.count 145 i == Math.ceil(sum) ? nodeNaviListCell.getChildByName('Text').getComponent(cc.Label).string = (20 * i - 19) + "-" + this._oEpisode.count
128 : nodeNaviListCell.getChildByName('Text').getComponent(cc.Label).string = (20 * i - 19) + "-" + 20 * i;//TODO:最后显示应该是41-52而不是41-60 146 : nodeNaviListCell.getChildByName('Text').getComponent(cc.Label).string = (20 * i - 19) + "-" + 20 * i;//TODO:最后显示应该是41-52而不是41-60
147 nodeNaviListCell.getChildByName('Text').color = new cc.Color(255, 204, 1);
129 this._nodeNaviList.addChild(nodeNaviListCell, 10, "NaviListCell" + i); 148 this._nodeNaviList.addChild(nodeNaviListCell, 10, "NaviListCell" + i);
130 // cc.loader.loadRes('VideoDetail/navi_bg', cc.Texture2D, function (err, texture) { 149 // cc.loader.loadRes('VideoDetail/navi_bg', cc.Texture2D, function (err, texture) {
131 // let spriteFrame = new cc.SpriteFrame(); 150 // let spriteFrame = new cc.SpriteFrame();
...@@ -150,13 +169,17 @@ cc.Class({ ...@@ -150,13 +169,17 @@ cc.Class({
150 //获取节目详情 169 //获取节目详情
151 checkPfbReadyAndInitPage: function () { 170 checkPfbReadyAndInitPage: function () {
152 var self = this; 171 var self = this;
153 Network.ajax("GET", Common.TOPDRAW_API_SERVER + "videoDetail/fujian_get_movie_detail.json", null, null, 172 Network.ajax("GET", Common.TOPDRAW_API_SERVER + "videoDetail/" + this._oSceneContext._detailJson, null, null,
154 function (strResponse) { 173 function (strResponse) {
155 try { 174 try {
156 var oJSONResult = JSON.parse(strResponse); 175 var oJSONResult = JSON.parse(strResponse);
157 // var oJSONResult = this.test_detail_json.json; 176 // var oJSONResult = this.test_detail_json.json;
158 this._oInit = oJSONResult.resultSet[0]; 177 this._oInit = oJSONResult.resultSet[0];
159 if (oJSONResult.businessCode == 'success') { 178 if (oJSONResult.businessCode == 'success') {
179 this._iStatus = oJSONResult.resultSet[0].status;
180 this._oInit.aFileCode = oJSONResult.resultSet[0].fileCode.split(",");
181 this._oInit.aSupercid = oJSONResult.resultSet[0].supercid.split(",");
182 this._oInit.aCid = oJSONResult.resultSet[0].cid.split(",");
160 cc.find("Desc/Title", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].name;//标题 183 cc.find("Desc/Title", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].name;//标题
161 cc.find("Desc/Title", this.node).getComponent(cc.Label)._forceUpdateRenderData(); 184 cc.find("Desc/Title", this.node).getComponent(cc.Label)._forceUpdateRenderData();
162 //==========放到大屏显示问题 185 //==========放到大屏显示问题
...@@ -192,13 +215,8 @@ cc.Class({ ...@@ -192,13 +215,8 @@ cc.Class({
192 let regExp = new RegExp(FindText, 'g'); 215 let regExp = new RegExp(FindText, 'g');
193 return this.replace(regExp, RepText); 216 return this.replace(regExp, RepText);
194 }; 217 };
195 if (this._oInit != null) { 218
196 this._oInit.fileCode = (this._oInit.fileCode.substring(this._oInit.fileCode.indexOf("_") + 1, this._oInit.fileCode.lastIndexOf("_"))).replaceAll("-", ""); 219 this.getPlayURLByFileCode();
197 }
198 cc.log("fileCode| " + this._oInit.fileCode + " | supercid |" + this._oInit.supercid + " | cid | " + this._oInit.cid);
199 if (cc.sys.isNative) {
200 jsb.reflection.callStaticMethod("org/cocos2dx/javascript/common/TopdrawSDKWrapper", "getPlayUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", this._oInit.supercid, this._oInit.cid, "getPlayURLAndPlay");
201 }
202 } else { 220 } else {
203 cc.log("Business Error:Get checkPfbReadyAndInitPage..." + oJSONResult.description); 221 cc.log("Business Error:Get checkPfbReadyAndInitPage..." + oJSONResult.description);
204 } 222 }
...@@ -211,6 +229,46 @@ cc.Class({ ...@@ -211,6 +229,46 @@ cc.Class({
211 }, this, "uuid"); 229 }, this, "uuid");
212 }, 230 },
213 231
232 getPlayURLByFileCode: function () {
233 if (this._iStatus == 0) {
234 this.commonSimpleTip("该节目已下线!");
235 return;
236 }
237 if (this._oInit != null) {
238 // this._oInit.aFileCode[this._oSceneContext.episodeIndex] = (this._oInit.aFileCode[this._oSceneContext.episodeIndex].substring(this._oInit.aFileCode[this._oSceneContext.episodeIndex].indexOf("_") + 1, this._oInit.aFileCode[this._oSceneContext.episodeIndex].lastIndexOf("_"))).replaceAll("-", "");
239 this._fileCode = (this._oInit.aFileCode[this._oSceneContext.episodeIndex].substring(this._oInit.aFileCode[this._oSceneContext.episodeIndex].indexOf("_") + 1, this._oInit.aFileCode[this._oSceneContext.episodeIndex].lastIndexOf("_"))).replaceAll("-", "");
240 }
241 cc.log("fileCode| " + this._fileCode + " | supercid |" + this._oInit.aSupercid[this._oSceneContext.episodeIndex] + " | cid | " + this._oInit.aCid[this._oSceneContext.episodeIndex]);
242 if (cc.sys.isNative) {
243 jsb.reflection.callStaticMethod("org/cocos2dx/javascript/common/TopdrawSDKWrapper", "getPlayUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", this._oInit.aSupercid[this._oSceneContext.episodeIndex], this._oInit.aCid[this._oSceneContext.episodeIndex], "getPlayURLAndPlay");
244 }
245 for (let i = 0; i < this._oInit.aFileCode.length; i++) {
246 let nodeEpisodeCell = cc.find("EpisodeListCell" + i, this._nodeEpisodeList);
247 if (i == this._oSceneContext.episodeIndex) {
248 cc.find("EpisodeNum/Text", nodeEpisodeCell).color = new cc.Color(255, 204, 1);
249 } else {
250 cc.find("EpisodeNum/Text", nodeEpisodeCell).color = new cc.Color(255, 255, 255);
251 }
252 }
253 },
254
255 nextMedia: function () {
256 try {
257 if (this._oSceneContext.episodeIndex < this._oInit.aFileCode.length) {
258 this._oSceneContext.episodeIndex++;
259 } else {
260 this._oSceneContext.episodeIndex = 0;
261 }
262 this.getPlayURLByFileCode();
263 } catch (error) {
264 if (cc.sys.isNative) {
265 jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "nextMedia Error in VarietyVideo==>" + error);
266 }
267 }
268
269
270 },
271
214 checkCollect: function () { 272 checkCollect: function () {
215 var collectList = JSON.parse(cc.sys.localStorage.getItem("collectList")); 273 var collectList = JSON.parse(cc.sys.localStorage.getItem("collectList"));
216 if (collectList != null) { 274 if (collectList != null) {
...@@ -239,7 +297,7 @@ cc.Class({ ...@@ -239,7 +297,7 @@ cc.Class({
239 // options.playurl = this._oInit.url; 297 // options.playurl = this._oInit.url;
240 this.options.playurl = playUrl; //这个值可能会在OperateVideoPlayer中删除掉,重新造个值 298 this.options.playurl = playUrl; //这个值可能会在OperateVideoPlayer中删除掉,重新造个值
241 this.options.url = playUrl; 299 this.options.url = playUrl;
242 this.options.fileCode = this._oInit.fileCode; 300 this.options.fileCode = this._fileCode;
243 this._ComOperation.setURL(this.options); //测试播放地址 301 this._ComOperation.setURL(this.options); //测试播放地址
244 // this._cLog.screenI("VideoDetail.js->getPlayURLAndPlay | " + this.options.playurl + " || " + this.options.fileCode); 302 // this._cLog.screenI("VideoDetail.js->getPlayURLAndPlay | " + this.options.playurl + " || " + this.options.fileCode);
245 } catch (error) { 303 } catch (error) {
...@@ -391,6 +449,10 @@ cc.Class({ ...@@ -391,6 +449,10 @@ cc.Class({
391 // }); 449 // });
392 } else if (0 == this._fiCurrentFocus.node.name.indexOf('LabelDesc')) { 450 } else if (0 == this._fiCurrentFocus.node.name.indexOf('LabelDesc')) {
393 cc.find("FullDesc", this.node).active = true; 451 cc.find("FullDesc", this.node).active = true;
452 } else if (0 == this._fiCurrentFocus.node.name.indexOf('EpisodeListCell')) {
453 let iIndex = this._fiCurrentFocus.node.name.replace("EpisodeListCell", '');
454 this._oSceneContext.episodeIndex = iIndex;
455 this.getPlayURLByFileCode();
394 } else if (0 == this._fiCurrentFocus.node.name.indexOf('ButtonFullScreen') || 0 == this._fiCurrentFocus.node.name.indexOf('Pic')) { 456 } else if (0 == this._fiCurrentFocus.node.name.indexOf('ButtonFullScreen') || 0 == this._fiCurrentFocus.node.name.indexOf('Pic')) {
395 this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK); 457 this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK);
396 return; 458 return;
......
...@@ -188,8 +188,8 @@ ...@@ -188,8 +188,8 @@
188 "code": "promotionItem_0a911d4c-9223-4d49-se5hj54uh4w5g45w", 188 "code": "promotionItem_0a911d4c-9223-4d49-se5hj54uh4w5g45w",
189 "left": 63, 189 "left": 63,
190 "top": 61, 190 "top": 61,
191 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.Orbbec.MortaKombat\",\"activityName\":\"com.orbbec.u3d.OrbbecActivity\",\"downloadUrl\":\"apk/com.Orbbec.MortaKombat_v2.1.4_bc55_20190717_Release.apk\"}}]}", 191 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\",\"detailJson\":\"fujian_movie_detail_legaochengshi.json\"}}]}",
192 "imageURL": "upload/image/main/block5_1.jpg", 192 "imageURL": "upload/image/main/乐高城市系列.jpg",
193 "width": 564, 193 "width": 564,
194 "height": 228 194 "height": 228
195 }, 195 },
...@@ -198,8 +198,8 @@ ...@@ -198,8 +198,8 @@
198 "code": "promotionItem_c388af5a-0351-43c4-e5sjhu45h54wh45h", 198 "code": "promotionItem_c388af5a-0351-43c4-e5sjhu45h54wh45h",
199 "left": 653, 199 "left": 653,
200 "top": 61, 200 "top": 61,
201 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.Orbbec.MortaKombat\",\"activityName\":\"com.orbbec.u3d.OrbbecActivity\",\"downloadUrl\":\"apk/com.Orbbec.MortaKombat_v2.1.4_bc55_20190717_Release.apk\"}}]}", 201 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\",\"detailJson\":\"fujian_movie_detail_legaomanweidc.json\"}}]}",
202 "imageURL": "upload/image/main/block5_1.jpg", 202 "imageURL": "upload/image/main/乐高漫威DC超级英雄系列.jpg",
203 "width": 564, 203 "width": 564,
204 "height": 228 204 "height": 228
205 } 205 }
...@@ -218,8 +218,8 @@ ...@@ -218,8 +218,8 @@
218 "code": "promotionItem_c388af5a-0351-43c4we5jh45j45jh54hj", 218 "code": "promotionItem_c388af5a-0351-43c4we5jh45j45jh54hj",
219 "left": 63, 219 "left": 63,
220 "top": 24, 220 "top": 24,
221 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.candy\"}}]}", 221 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\",\"detailJson\":\"fujian_movie_detail_beilehuertongyinyueju.json\"}}]}",
222 "imageURL": "upload/image/main/block5_3.png", 222 "imageURL": "upload/image/main/贝乐虎儿童音乐剧之神奇恐龙世界1.jpg",
223 "width": 368, 223 "width": 368,
224 "height": 228 224 "height": 228
225 }, 225 },
...@@ -228,8 +228,8 @@ ...@@ -228,8 +228,8 @@
228 "code": "promotionItem_c388af5a-0351-43c4j56j54hw4h54", 228 "code": "promotionItem_c388af5a-0351-43c4j56j54hw4h54",
229 "left": 456, 229 "left": 456,
230 "top": 24, 230 "top": 24,
231 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.shuyishu\"}}]}", 231 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\",\"detailJson\":\"fujian_movie_detail_legaohuanying.json\"}}]}",
232 "imageURL": "upload/image/main/block5_4.png", 232 "imageURL": "upload/image/main/乐高幻影忍者系列2.jpg",
233 "width": 368, 233 "width": 368,
234 "height": 228 234 "height": 228
235 }, 235 },
...@@ -238,8 +238,8 @@ ...@@ -238,8 +238,8 @@
238 "code": "promotionItem_c388af5a-0351-43c4-w45jh45h54h5h", 238 "code": "promotionItem_c388af5a-0351-43c4-w45jh45h54h5h",
239 "left": 848, 239 "left": 848,
240 "top": 24, 240 "top": 24,
241 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.haidao\"}}]}", 241 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\",\"detailJson\":\"fujian_movie_detail_legaojingdian.json\"}}]}",
242 "imageURL": "upload/image/main/block5_5.png", 242 "imageURL": "upload/image/main/乐高经典影视动漫系列.jpg",
243 "width": 368, 243 "width": 368,
244 "height": 228 244 "height": 228
245 } 245 }
......
1 {
2 "businessCode": "success",
3 "count": 1,
4 "resultSet": [
5 {
6 "name": "贝乐虎儿童音乐剧之神奇恐龙世界",
7 "status": 1,
8 "episode_number": 9,
9 "current_episode_number": 9,
10 "fileCode": "file_c629e2f7-5055-46ea-954e-ecb669c5bf73_TS4M1080p,file_63902142-64f9-41c1-814e-f52a50f73275_TS4M1080p,file_5af68899-3c15-4a95-9a76-1431f6a6ae31_TS4M1080p,file_e4a6fbe4-b91c-43a9-bd7c-3444fa76d499_TS4M1080p,file_14cc9cbb-2128-4c52-b7f9-9bcc5538199a_TS4M1080p,file_e4d94471-de2c-42d5-a69f-61a8a17b746a_TS4M1080p,file_7ddc6cb6-c41e-4f2a-b2b2-a9f56b3c8429_TS4M1080p,file_bba7a013-b2bc-4ba0-a5da-b2a85df8ee45_TS4M1080p,file_a080fbdc-911f-408d-aa34-92106448e201_TS4M1080p",
11 "supercid": "a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8,a3c44ebe9b114bd89cb42f16e181cda8",
12 "cid": "a3d2918d0b554733b97d44d0594cf91d,ca1e328732a046acbead321fba34dde4,749d51e1e45f41ad9e03836080c25152,3050c89654d54e70a4f112b416245ea2,bccac5b4942a4de8a6ce9020af47dcfd,517da1227acd4c9da33ab37f460904d4,661c800a3d6148b2a18b0bcf5dc331cf,a861e8f45bf54381bff30bd16fa0bc59,92513ec80faa4b27b9af3f14adec265a",
13 "description": "简介:《贝乐虎儿童音乐剧之神奇恐龙世界》是由“贝乐虎”品牌全新打造的一部关于恐龙认知的儿童音乐剧动画短片。《贝乐虎儿童音乐剧之神奇恐龙世界》第一季共12集,每集大概2-3分钟,分为三个环节,第一节为有趣的开场故事,强化贝乐虎兄弟与恐龙的互动。第二节为音乐故事情节,有趣的情节搭配美妙的音乐,可以让小朋友快乐学唱恐龙儿歌。第三节为结束部分,生成一张恐龙集集卡加强系列感,卡片上内容有恐龙的名称,攻击力,防御力以及食性等等。",
14 "url": "",
15 "images": {
16 "list": [
17 {
18 "extension": ".png",
19 "enable": true,
20 "fileUrl": "GameDetail/icon_game.png",
21 "width": 274,
22 "height": 168
23 }
24 ]
25 },
26 "image": [
27 {
28 "extension": ".png",
29 "size": 100405,
30 "enable": true,
31 "fileUrl": "upload/image/games/o宝脑力训练270-167.jpg",
32 "width": 270,
33 "height": 167
34 }
35 ]
36 }
37 ]
38 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "businessCode": "success",
3 "count": 1,
4 "resultSet": [
5 {
6 "name": "乐高城市系列",
7 "status": 1,
8 "episode_number": 9,
9 "current_episode_number": 9,
10 "fileCode": "file_4d7bfdc2-1fb3-4052-8807-512ff037e2ad_TS4M1080p,file_12cc4649-b538-431a-88a0-898b34ec98e2_TS4M1080p,file_7edd09b9-f1da-494c-9bdc-a77f42e30873_TS4M1080p,file_63e48c9f-df75-42b6-a41e-f45b9928d3ab_TS4M1080p,file_b66159d2-df3d-4239-8fec-f964fda8a000_TS4M1080p,file_08225607-e57b-4ffd-a87f-ec3cab324ce0_TS4M1080p,file_b7b4b69f-ee8f-4adf-a197-bd026b2c831e_TS4M1080p,file_a13cab1c-2cf5-45c0-af5b-3a7b30009916_TS4M1080p,file_7ba84bed-ab50-4149-a736-9edbf2f3b7f3_TS4M1080p,file_b5f31be6-fbbe-429b-8975-8cff0f36c712_TS4M1080p",
11 "supercid": "9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6,9f839473b98b4fce84c4a085b2f1e7b6",
12 "cid": "000ce347a5cd4539b8262f37934b20a8,4491193debf74bc191dfa6e22e7827b4,66202f37b6164194ae12ce5fc3805705,f9f8d3b699284bff9d5b94f626cf08db,2a890250159f433693702e8674b5bb61,c2d0717144cb414ab116c384086f2df6,6742951bf7894920ae32c5d6e768067d,f9e765ddf1254da3bf7aad93bcbfca66,a4174cebac794c71aa413e58ae8d9b61,c70c1386ee614e04842ac6ae3f2d02e3",
13 "description": "简介:乐高城市系列手工节目",
14 "url": "http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4",
15 "images": {
16 "list": [
17 {
18 "extension": ".png",
19 "enable": true,
20 "fileUrl": "GameDetail/icon_game.png",
21 "width": 274,
22 "height": 168
23 }
24 ]
25 },
26 "image": [
27 {
28 "extension": ".png",
29 "size": 100405,
30 "enable": true,
31 "fileUrl": "upload/image/games/o宝脑力训练270-167.jpg",
32 "width": 270,
33 "height": 167
34 }
35 ]
36 }
37 ]
38 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "businessCode": "success",
3 "count": 1,
4 "resultSet": [
5 {
6 "name": "乐高幻影忍者系列",
7 "status": 1,
8 "episode_number": 9,
9 "current_episode_number": 9,
10 "fileCode": "file_6ba99bd5-3606-47a6-a1af-84ac0efaab4f_TS4M1080p,file_6ba051c9-bfb2-4794-9f66-d72f154806fb_TS4M1080p,file_6f90ac6e-95d7-44c0-99e4-3c57696d63f7_TS4M1080p,file_a73f1cea-3d88-4dde-9e87-ee57f325b0c5_TS4M1080p,file_c4200b8f-e98c-4701-aae5-4ff716100e90_TS4M1080p,file_c737c315-4205-41fc-bbdf-655c2d2997f3_TS4M1080p,file_fc5ff981-e668-47ce-8a90-5a90266d9978_TS4M1080p,file_e7dd3874-5a79-4bd2-b931-3950098737d8_TS4M1080p,file_8c6b63b9-af73-4d59-a80c-609b9234aeec_TS4M1080p,file_ab485610-6ae8-4def-a240-9ca99c2d03b2_TS4M1080p",
11 "supercid": "bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3,bad6277dd5d04e0798ce1b76f6bcd3f3",
12 "cid": "bc0d3828e3b44859b7c7f8287db9c243,d438aa7ec19543289ca506dc1bd3c327,911c5c579d0545abb817097ee055e4c0,a71a12b82725409e85daff995ea6aa77,3623ed17621d407ba748eca795bf1f53,6b5dbaa5b7f544c0830e31a99b6eebc5,b71465020f194055a3e5934cf2e2d2e6,3e57de3e62294ad983328bb3df6fa556,d43528fe6b504b6e9d608127581fb288,359efde7bd3449e4847ff487db3e1721",
13 "description": "简介:乐高幻影忍者系列手工节目",
14 "url": "",
15 "images": {
16 "list": [
17 {
18 "extension": ".png",
19 "enable": true,
20 "fileUrl": "GameDetail/icon_game.png",
21 "width": 274,
22 "height": 168
23 }
24 ]
25 },
26 "image": [
27 {
28 "extension": ".png",
29 "size": 100405,
30 "enable": true,
31 "fileUrl": "upload/image/games/o宝脑力训练270-167.jpg",
32 "width": 270,
33 "height": 167
34 }
35 ]
36 }
37 ]
38 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "businessCode": "success",
3 "count": 1,
4 "resultSet": [
5 {
6 "name": "乐高经典影视动漫系列",
7 "status": 1,
8 "episode_number": 9,
9 "current_episode_number": 9,
10 "fileCode": "file_a4c5e018-f642-41d3-b311-9555a1735863_TS4M1080p,file_6ff64f0f-b955-487b-a33c-c67a2d5a9697_TS4M1080p,file_64e66966-b5af-446a-80f3-c9b3073195de_TS4M1080p,file_39665b3e-f2c7-412b-bf10-08c4fceb15c1_TS4M1080p,file_cbea3a9c-b79e-484c-b2d8-90653528f42f_TS4M1080p,file_fbd05d7b-37ae-4b6c-a01f-de3a2af469ea_TS4M1080p,file_972de948-e987-4242-a2c9-f4896157088c_TS4M1080p,file_5eb5f0fb-0aa8-40fc-9bc3-60b6ec123d26_TS4M1080p,file_7a1c5ce6-a684-41b0-ad51-d16644bcdfdf_TS4M1080p,file_b6644c13-ca37-49d4-9c2e-cf4ea8f0bc5e_TS4M1080p",
11 "supercid": "a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b,a4e51f1d662446e6ae9020947580ba5b",
12 "cid": "ba6f2aa99c454c4cb045711ec87162b2,21e77feb2ec24b40b835c7a960c462f7,844a6868f0d1478695461fa745604052,cfc819d3c6a846c9acbcf7cc9ec8bf0a,0e7a82721c314373af984d2437ad3cf7,3372ad0b5e704ae1a7ded2219a9f0a88,90811b60bd764708aa9bb40f509abc88,eb65f6b0143e4ee69096d8ffc5e477c8,bcd889259fe8493dbaa9070145c4b0c2,6d15e3a2d9f94a90b987ab86a7adb006",
13 "description": "简介:乐高经典影视动漫系列手工节目",
14 "url": "",
15 "images": {
16 "list": [
17 {
18 "extension": ".png",
19 "enable": true,
20 "fileUrl": "GameDetail/icon_game.png",
21 "width": 274,
22 "height": 168
23 }
24 ]
25 },
26 "image": [
27 {
28 "extension": ".png",
29 "size": 100405,
30 "enable": true,
31 "fileUrl": "upload/image/games/o宝脑力训练270-167.jpg",
32 "width": 270,
33 "height": 167
34 }
35 ]
36 }
37 ]
38 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "businessCode": "success",
3 "count": 1,
4 "resultSet": [
5 {
6 "name": "乐高漫威DC超级英雄系列",
7 "status": 1,
8 "episode_number": 9,
9 "current_episode_number": 9,
10 "fileCode": "file_390bb083-ea79-4b9e-8ac7-02e3d0c41d92_TS4M1080p,file_a212a008-3231-4c54-b928-f18f265d2af5_TS4M1080p,file_8c2dc8bf-7f33-4bec-93c2-b55acc25fa82_TS4M1080p,file_0d0d338d-b949-4bbc-a1a7-f747f756ddc7_TS4M1080p,file_c81c1514-e8ff-4aae-84d0-cbfa14713bb7_TS4M1080p,file_2d8e2c4b-3139-4097-8bdc-d03581bb3729_TS4M1080p,file_1e1f80e5-3b8a-4fc1-b627-e05dc92dae83_TS4M1080p,file_d96cefab-7f74-4749-b93a-ad1eed71cc42_TS4M1080p,file_71fc375d-dc71-464d-b136-1891832f3658_TS4M1080p,file_089410c7-9418-4263-8931-249bb769131e_TS4M1080p",
11 "supercid": "72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84,72fd202cd3ec434a952062bd29a67b84",
12 "cid": "95d02d7f202e4f13a322716707dd95ee,312b639a23b944989a5ad1f682a519f9,906f941780b847ef84fc6aac31b395f5,a586e827cd9f46b88d7a79454b808fd9,07c9e1915b7f431689f7e6a200544b27,5faaea80389f4b12b372b5943f69d120,ad6f00b089f84adda69fac021b9aefc9,34ddddbe4b4e49c39c281c029e88e31c,eaf6929c597b44f7a2fca0cdc513dd19,637f729feb104ba39785fd80601884b6",
13 "description": "简介:乐高漫威DC超级英雄系列手工节目",
14 "url": "",
15 "images": {
16 "list": [
17 {
18 "extension": ".png",
19 "enable": true,
20 "fileUrl": "GameDetail/icon_game.png",
21 "width": 274,
22 "height": 168
23 }
24 ]
25 },
26 "image": [
27 {
28 "extension": ".png",
29 "size": 100405,
30 "enable": true,
31 "fileUrl": "upload/image/games/o宝脑力训练270-167.jpg",
32 "width": 270,
33 "height": 167
34 }
35 ]
36 }
37 ]
38 }
...\ No newline at end of file ...\ No newline at end of file
1 { 1 {
2 "businessCode": "success", 2 "businessCode": "success",
3 "count": 1, 3 "count": 9,
4 "count2": 64, 4 "count2": 64,
5 "currentTime": 1584672100682, 5 "currentTime": 1584672100682,
6 "description": "", 6 "description": "",
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
32 <application 32 <application
33 android:name="org.cocos2dx.javascript.common.MelodyApplication" 33 android:name="org.cocos2dx.javascript.common.MelodyApplication"
34 android:allowBackup="false" 34 android:allowBackup="false"
35 android:icon="@mipmap/icon" 35 android:icon="@mipmap/logo_forfun"
36 android:label="@string/app_name"> 36 android:label="@string/app_name">
37 37
38 <!-- Tell Cocos2dxActivity the name of our .so --> 38 <!-- Tell Cocos2dxActivity the name of our .so -->
......
...@@ -95,7 +95,7 @@ public class AppActivity extends Cocos2dxActivity { ...@@ -95,7 +95,7 @@ public class AppActivity extends Cocos2dxActivity {
95 private static String TOPDRAW_APPSECRET; 95 private static String TOPDRAW_APPSECRET;
96 private static String TOPDRAW_REFER_PATH; 96 private static String TOPDRAW_REFER_PATH;
97 97
98 public static String TOPDRAW_API_PATH = "http://demo.cloud.api.findfun.topdraw.cn:38081/findfun"; 98 public static String TOPDRAW_API_PATH = "http://forfun.fj.a183.ottcn.com:8082/clutch/apps/forfun";
99 99
100 private final Handler mHandler = new Handler(); 100 private final Handler mHandler = new Handler();
101 101
...@@ -411,12 +411,15 @@ public class AppActivity extends Cocos2dxActivity { ...@@ -411,12 +411,15 @@ public class AppActivity extends Cocos2dxActivity {
411 // Log.d("AppActivity", "onStop()...."); 411 // Log.d("AppActivity", "onStop()....");
412 super.onStop(); 412 super.onStop();
413 SDKWrapper.getInstance().onStop(); 413 SDKWrapper.getInstance().onStop();
414 onDestroy();
414 } 415 }
415 416
416 @Override 417 @Override
417 protected void onDestroy() { 418 protected void onDestroy() {
418 // Log.d("AppActivity", "onDestroy()...."); 419 // Log.d("AppActivity", "onDestroy()....");
419 unregisterReceiver(receiver); 420 unregisterReceiver(receiver);
421 NativeLogReporterNewTV nlp = NativeLogReporterNewTV.getInstance(this, null);
422 nlp.report(88, "1");
420 super.onDestroy(); 423 super.onDestroy();
421 SDKWrapper.getInstance().onDestroy(); 424 SDKWrapper.getInstance().onDestroy();
422 } 425 }
......
...@@ -7,6 +7,7 @@ import android.content.pm.PackageInfo; ...@@ -7,6 +7,7 @@ import android.content.pm.PackageInfo;
7 import android.content.pm.PackageManager; 7 import android.content.pm.PackageManager;
8 import android.net.Uri; 8 import android.net.Uri;
9 import android.text.TextUtils; 9 import android.text.TextUtils;
10 import android.util.Log;
10 import android.view.View; 11 import android.view.View;
11 import android.widget.ProgressBar; 12 import android.widget.ProgressBar;
12 import android.widget.RelativeLayout; 13 import android.widget.RelativeLayout;
...@@ -89,10 +90,11 @@ public class TopdrawSDKWrapper { ...@@ -89,10 +90,11 @@ public class TopdrawSDKWrapper {
89 } 90 }
90 91
91 // Log.d(TAG, "token | " + CommonUtils.getToken(_activity) + " server| " + CommonUtils.getServer(_activity)); 92 // Log.d(TAG, "token | " + CommonUtils.getToken(_activity) + " server| " + CommonUtils.getServer(_activity));
93 Log.d(TAG, epgServer + "请求参数:" + mapParams.toString());
92 HttpClientUtil.post(epgServer, mapParams.toString(), token, new HttpClientUtil.OnRequestCallBack() { 94 HttpClientUtil.post(epgServer, mapParams.toString(), token, new HttpClientUtil.OnRequestCallBack() {
93 @Override 95 @Override
94 public void onSuccess(String json) { 96 public void onSuccess(String json) {
95 // Log.d(TAG, "成功获取播放链接 | " + json); 97 Log.d(TAG, "成功获取播放链接 | " + json);
96 JSONObject joAuthorizeResult = null; 98 JSONObject joAuthorizeResult = null;
97 try { 99 try {
98 joAuthorizeResult = new JSONObject(json); 100 joAuthorizeResult = new JSONObject(json);
...@@ -147,7 +149,7 @@ public class TopdrawSDKWrapper { ...@@ -147,7 +149,7 @@ public class TopdrawSDKWrapper {
147 } 149 }
148 150
149 public static void startGame(String apkName, final String strJSCallBack) { 151 public static void startGame(String apkName, final String strJSCallBack) {
150 // Log.d(TAG, "TopdrawSDKWrapper starGame start..." + apkName); 152 Log.d(TAG, "TopdrawSDKWrapper starGame start..." + apkName);
151 153
152 final View singleColorView = _activity.getSingleColorView(); 154 final View singleColorView = _activity.getSingleColorView();
153 View view = _activity.getProgressBarView(); 155 View view = _activity.getProgressBarView();
......