904118851 7 月之前
父節點
當前提交
0b80e1be09
共有 3 個文件被更改,包括 6 次插入1 次删除
  1. 6 0
      1_FILTER_FACTORY/FILTER_FACTORY.js
  2. 0 1
      2_PRODUCT_FACTORY/qm_batch_factory.js
  3. 二進制
      dump.rdb

+ 6 - 0
1_FILTER_FACTORY/FILTER_FACTORY.js

@@ -176,6 +176,12 @@ function filter_and_insert(origin_data,tg_config,PlatformConfig){
             params['bookId'] = getKey(url);
         }else if(parent_platform_id==config.platform_qimao){
             params['bookId'] = getId(url);
+            if(params['bookId']==undefined||params['bookId']==null){
+                return null
+            }
+            if(params['bookId'].length>6){
+                return null
+            }
         }
         
         let obj =  {video_id:origin_data.video_id,book_id:params['bookId'],source:params['name'].substring(0,params['name'].length>64?64:params['name'].length),video_link:origin_data.video_link,

+ 0 - 1
2_PRODUCT_FACTORY/qm_batch_factory.js

@@ -106,7 +106,6 @@ async function processCreateTask(){
         if(task_queue.length>0){
             let task_queue_item = task_queue.pop()
             result = task_queue_item.result
-            console.log("task_queue_item:",task_queue_item)
             let other_book = await other_book_controllers.getData({product_id:task_queue_item.result.data.book_id})
             if(other_book.success){
                 await filter_data_controllers.updateFilterData({id:result.data.id},{status:2,book_id:other_book.data.product_id,book_name:other_book.data.product_name,material_sync_status:2})

二進制
dump.rdb