shawenguan před 1 rokem
rodič
revize
aef6fa98e5
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Scripts/wubian/wubianSynthesis.js

+ 2 - 2
Scripts/wubian/wubianSynthesis.js

@@ -497,7 +497,7 @@ async function getCvtGoodsList(activityId, noCache) {
     let data = magicJS.data.read(key, null);
     if (!data || noCache) {
         let ret = await queryCvtGoodsList(activityId);
-        if (ret.code == 200) {
+        if (ret && ret.code == 200) {
             data = ret.data;
             magicJS.data.write(key, data);
         }
@@ -538,7 +538,7 @@ async function getCompositeGoodsList(activityId, noCache) {
     let data = magicJS.data.read(key, null);
     if (!data || noCache) {
         let ret = await queryCompositeGoodsList(activityId);
-        if (ret.code == 200) {
+        if (ret && ret.code == 200) {
             data = ret.data;
             magicJS.data.write(key, data);
         }