904118851 2 tháng trước cách đây
mục cha
commit
196dd1f7b7
2 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      5_CREATE_LINK_FACTORY/hy_create_link_factory.js
  2. BIN
      dump.rdb

+ 6 - 4
5_CREATE_LINK_FACTORY/hy_create_link_factory.js

@@ -82,7 +82,7 @@ async function processTask(){
         let task_list = []
         for (let index = 0; index < all_platform_list.length; index++) {
             const tg_platform_id = all_platform_list[index];
-            let temp_result = await video_applet_product_controllers.getAppletProductByBookPlatformAndLimit({status:0,wait_status:0,book_platform:tg_platform_id},10)
+            let temp_result = await video_applet_product_controllers.getAppletProductByBookPlatformAndLimit({status:0,wait_status:0,book_platform:tg_platform_id},1)
             if(temp_result.success){
                 task_list = temp_result.data
                 break
@@ -145,6 +145,8 @@ async function processTask(){
                     main_info:main_info,
                     PlatformInfo:PlatformInfo
                 })
+
+                await processCreateLinkTask()
             }
         }
     }catch(e){
@@ -172,11 +174,11 @@ async function processCreateLinkTask(){
             }
   
         }
-        await new Promise(resolve => setTimeout(resolve,100));
+        // await new Promise(resolve => setTimeout(resolve,100));
     }catch(e){
 
     } finally{
-        global.setTimeout(processCreateLinkTask,time_count)
+        // global.setTimeout(processCreateLinkTask,time_count)
     }
 }
 CMD.init = function(){
@@ -185,7 +187,7 @@ CMD.init = function(){
         }
     })
     processTask()
-    processCreateLinkTask()
+    // processCreateLinkTask()
 }
 
 

BIN
dump.rdb