904118851 8 mēneši atpakaļ
vecāks
revīzija
9afc63da30
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      2_PRODUCT_FACTORY/fq_factory.js

+ 2 - 2
2_PRODUCT_FACTORY/fq_factory.js

@@ -54,7 +54,7 @@ async function processTask(){
             if(!isInsertTask){
                 await CMD.update_filter_data(FilterConfig,result.data)
             }else{
-                await filter_data_controllers.updateFilterData({id:result.data.id},{status:1})
+                await filter_data_controllers.updateFilterData({id:result.data.id},{status:1,material_sync_status:2})
                 task_queue.push({result:result})
             }
         }
@@ -205,7 +205,7 @@ CMD.update_filter_data = async function(FilterConfig,data) {
     let isGenre = CMD.isGenre(FilterConfig,data.genre)
     // console.log("data.genre:",data.genre,data,isGenre)
     if(isGenre){
-        await filter_data_controllers.updateFilterData({id:data.id},{status:1,book_id:data.book_id,book_name:data.book_name,genre:data.genre,words:data.words})
+        await filter_data_controllers.updateFilterData({id:data.id},{status:1,book_id:data.book_id,book_name:data.book_name,genre:data.genre,words:data.words,material_sync_status:0})
         //创建一个小程序    
         let AppConfig = await redis_help.getKeyValue("AppConfig")