904118851 hai 8 meses
pai
achega
62321b38cb
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      PULL_DATA_FACTORY/PULL_DATA.js

+ 5 - 0
PULL_DATA_FACTORY/PULL_DATA.js

@@ -27,6 +27,11 @@ async function processTask(timeRange){
         // console.log("get_novel_material_list:",response)
         let materialId_list = []
         let materialId_data_list = []
+        if(response.errorCode!=0){
+            console.log("errorCode:",response.errorCode)
+            cur_page = -1
+            throw "没有数据了"
+        }
         if(response.result.list == undefined){
             cur_page = -1
             throw "没有数据了"