shawenguan 1 miesiąc temu
rodzic
commit
d131fddf5d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      Scripts/zhuanzhuan/zhuanzhuanSearch.js

+ 2 - 2
Scripts/zhuanzhuan/zhuanzhuanSearch.js

@@ -18,7 +18,7 @@ function updateHeaders() {
 
 
 async function trySearch() {
-    let total = 100;
+    let total = 1;
     for (let i = 1; i <= total; i++) {
         magicJS.logger.info(`[0]搜索进度${i}/${total}`);
         let retSearch = await doSearch("iphone 15 pro", i);
@@ -146,7 +146,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);