904118851 há 4 meses atrás
pai
commit
8008e2bb96
2 ficheiros alterados com 4 adições e 1 exclusões
  1. 1 1
      src/api/dz/dz_search_book.js
  2. 3 0
      task_script/dz_word_async.js

+ 1 - 1
src/api/dz/dz_search_book.js

@@ -48,9 +48,9 @@ async function search_id(book_id) {
             info.totalChapterNum = data['rows'][0].totalChapterNum
             info.totalChapterNum = data['rows'][0].totalChapterNum
             info.genre = 3;
             info.genre = 3;
         }
         }
-        console.log("data:",data)
         return info;
         return info;
     } catch (error) {
     } catch (error) {
+        console.log("error:",error)
         return null;
         return null;
     }
     }
 }
 }

+ 3 - 0
task_script/dz_word_async.js

@@ -26,6 +26,9 @@ async function processTask(){
             let video_product_info = rows[index]
             let video_product_info = rows[index]
 
 
             let data = await require('../src/api/dz/dz_search_book').search_id(video_product_info.product_id)
             let data = await require('../src/api/dz/dz_search_book').search_id(video_product_info.product_id)
+            // if(data!=null){
+
+            // }
             let totalWordSize = data.words
             let totalWordSize = data.words
             let totalChapterNum = data.totalChapterNum
             let totalChapterNum = data.totalChapterNum