shawenguan 1 개월 전
부모
커밋
cb313b076c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Scripts/zhuanzhuan/zhuanzhuanSearch.js

+ 3 - 0
Scripts/zhuanzhuan/zhuanzhuanSearch.js

@@ -31,6 +31,9 @@ async function trySearch() {
         magicJS.logger.info(`[2]搜索结果数:${infos.length}`);
         for (let info of infos) {
             magicJS.logger.info(`infoId=${info.infoId}`);
+            if (info.infoId == void 0) {
+                continue;
+            }
             let retGoodsInfo = await getGoodsInfo(info.infoId);
             let report = retGoodsInfo.respData?.report;
             let itemId2AttrInfo = report.itemId2AttrInfo;