|
@@ -34,7 +34,7 @@ async function trySearch() {
|
|
|
let retGoodsInfo = await getGoodsInfo(info.infoId);
|
|
|
let report = retGoodsInfo.respData?.report;
|
|
|
let itemId2AttrInfo = report.itemId2AttrInfo;
|
|
|
- if (checkOSVersionLow(itemId2AttrInfo, '17.0')) {
|
|
|
+ if (itemId2AttrInfo && checkOSVersionLow(itemId2AttrInfo, '17.0')) {
|
|
|
magicJS.logger.info(`匹配到${JSON.stringify(itemId2AttrInfo)}`);
|
|
|
await addLoveInfo(info.infoId);
|
|
|
}
|
|
@@ -149,7 +149,7 @@ async function doSearch(keyword, pagenum = 1, pagesize = 20) {
|
|
|
let result = await magicJS.http.post(options).then(response => {
|
|
|
try {
|
|
|
let rspData = response.body;
|
|
|
- magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
+ // magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
return rspData;
|
|
|
} catch (e) {
|
|
|
magicJS.logger.error(e);
|
|
@@ -187,7 +187,7 @@ async function getGoodsInfo(infoId) {
|
|
|
let result = await magicJS.http.get(options).then(response => {
|
|
|
try {
|
|
|
let rspData = response.body;
|
|
|
- // magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
+ magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
|
|
|
return rspData;
|
|
|
} catch (e) {
|
|
|
magicJS.logger.error(e);
|