shawenguan il y a 1 an
Parent
commit
2d1527550c
2 fichiers modifiés avec 6 ajouts et 11 suppressions
  1. 1 1
      Scripts/hbcpre/hbcpreComposite.js
  2. 5 10
      Scripts/hbcpre/hbcpreHelper.js

+ 1 - 1
Scripts/hbcpre/hbcpreComposite.js

@@ -321,7 +321,7 @@ function saveActivitDataCache(id, data){
 async function getCompositeList(id){
     let reqData = {eventsId: id};
     let result = await hbRequest({API: '/mall/works/compositeList', METHOD: 'get'}, reqData);
-    if(result.code == 432){
+    if(result.code == 432 && result.data){
         // 无资格
         result.code = 200;
     }

+ 5 - 10
Scripts/hbcpre/hbcpreHelper.js

@@ -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){