904118851 před 3 měsíci
rodič
revize
a60fc92920

+ 1 - 1
2_PRODUCT_FACTORY/collect_hy_book.js

@@ -13,7 +13,7 @@ CMD.runTask = async function(data){
         return null
     }
 
-    if(book_info.rows.lenght<=0){
+    if(book_info.rows.length<=0){
         return null
     }
     let book_name = book_info.rows[0].name;

+ 1 - 1
check_hy_info.js

@@ -19,7 +19,7 @@ async function processTask(){
                     return null
                 }
             
-                if(hy_book_data.rows.lenght<=0){
+                if(hy_book_data.rows.length<=0){
                     return null
                 }
                 let words = hy_book_data.rows[0].words; //,

+ 1 - 0
task_script/sync_publish_time_fq.js

@@ -31,6 +31,7 @@ async function processTask(){
                 await connection.execute(
                     `UPDATE video_product SET publish_time = "${publish_time}"  WHERE id = ${video_product_info.id} `
                 );
+                await new Promise(resolve => setTimeout(resolve,1000));
             }else{
                 // await connection.execute(
                 //     ` delete from video_product  where   id = ${video_product_info.id}; `

+ 2 - 2
task_script/sync_publish_time_hy.js

@@ -36,8 +36,8 @@ async function processTask(){
             if(data.rows==null||data.rows==undefined){
                 data = null
             }
-        
-            if(data.rows.lenght<=0){
+
+            if(data.rows.length<=0){
                 data = null
             }