Commit ed3cb766 ed3cb766e9ee43ccb893a7ba8330db3c477823ba by 李琴

test2

1 parent 91e02429
Showing 1 changed file with 31 additions and 0 deletions
1 ///melody/mcktv/index.html?referURL=%5B%22http%3A%2F%2F222.68.210.101%3A9080%2Fhyperion.chimera%2Findex.jsp%3FAction%3DLogout%22%2C%22http%3A%2F%2F222.68.210.101%3A9080%2Fmelody%2Fsparrow.silkworm%2FindexNew.html%3FbackStatus%3D1%22%5D
2 ///IptvRecommend/content/contentRecommendForEPG.do?recommendMap=%7B%22userId%22:%2219109004@etva%22,%22action%22:%2296%22,%22userAd%22:%22%22%7D
3 var PAGE_DEFAULT_BACK_PATH = "../sparrow.silkworm/indexNew.html";
4 var TOPDRAW_EPG_BASE_SERVER="http://222.68.210.7:9080/";
5 var strReferUrl = decodeURIComponent('%5B%22http%3A%2F%2F222.68.210.101%3A9080%2Fhyperion.chimera%2Findex.jsp%3FAction%3DLogout%22%2C%22http%3A%2F%2F222.68.210.101%3A9080%2Fmelody%2Fsparrow.silkworm%2FindexNew.html%3FbackStatus%3D1%22%5D');
6 try{
7 if(!strReferUrl&&PAGE_DEFAULT_BACK_PATH||0 == strReferUrl.indexOf('[')&&!JSON.parse(strReferUrl).length){
8 console.log("1111");
9 }
10 }catch(err){
11 Log.error("error in judge default back==>"+err);
12 }
13 if (0 == strReferUrl.indexOf('[')) {//如果是新版数组referURL
14 console.log("2222");
15 var arrSplitRefer = JSON.parse(strReferUrl);
16 var strBackUrl = arrSplitRefer.pop();//上一个页面的url
17 console.log(strBackUrl);
18 if (arrSplitRefer[0]) {//string,backpage之后的referURL
19 strReferUrl = JSON.stringify(arrSplitRefer);
20 console.log("=="+strReferUrl);
21 } else {
22 strReferUrl = strReferUrl.substr(strReferUrl.indexOf(']') + 1);
23 }
24 if (0 != strBackUrl.indexOf('http')) {
25 strBackUrl = TOPDRAW_EPG_SERVER + strBackUrl;//这个的处理是为了双屏返回
26 }
27 console.log(strBackUrl);
28 if (-1!=strBackUrl.indexOf("http")&&-1==strBackUrl.indexOf(TOPDRAW_EPG_BASE_SERVER)) {
29 console.log("3333");
30 }
31 }