@@ -48,9 +48,9 @@ async function search_id(book_id) {
info.totalChapterNum = data['rows'][0].totalChapterNum
info.genre = 3;
}
- console.log("data:",data)
return info;
} catch (error) {
+ console.log("error:",error)
return null;
@@ -26,6 +26,9 @@ async function processTask(){
let video_product_info = rows[index]
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 totalChapterNum = data.totalChapterNum