shawenguan 1 년 전
부모
커밋
aef6fa98e5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
         }