|
|
@@ -154,13 +154,14 @@ function isHomeSeriesDataGrabEnabled(seriesId) {
|
|
|
return false;
|
|
|
}
|
|
|
flag = JSON.parse(flag);
|
|
|
- if(flag){
|
|
|
+ if(seriesId && flag){
|
|
|
let seriesList = magicJS.data.read(HbcpreConstKey.homeSeriesList, []);
|
|
|
for(let i=seriesList.length-1; i>= 0; i--){
|
|
|
if(seriesList[i].seriesId == seriesId){
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
+ return false;
|
|
|
}
|
|
|
return flag;
|
|
|
}
|
|
|
@@ -302,15 +303,6 @@ function checkHandleRequest() {
|
|
|
// "seriesType": 5
|
|
|
// }
|
|
|
break;
|
|
|
- case '/api/randomcompound/indexdetail':
|
|
|
- // 好运合成 post= {id:189}
|
|
|
- handleCompoundIndex();
|
|
|
- break;
|
|
|
- case '/api/randomcompound/compound':
|
|
|
- // 好运合成-立即合成 post= {id:189,token:'',random_json:'[]',random_id:'[]'}
|
|
|
- // random_json {collection_id:0,collection_group:0,num:1}
|
|
|
- //
|
|
|
- break;
|
|
|
case '/api/award/index':
|
|
|
// 限时抽奖 post= {activity_id:6}
|
|
|
handleAwardIndex();
|
|
|
@@ -975,6 +967,9 @@ function handlerCompositeList() {
|
|
|
return;
|
|
|
}
|
|
|
let data = rspData.data;
|
|
|
+ if(!data){
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 1=合成 3=兑换
|
|
|
let eventsType = data.eventsType;
|
|
|
if(eventsType == 1){
|