|
@@ -1,5 +1,5 @@
|
|
const CMD = {}
|
|
const CMD = {}
|
|
-const time_count = 2000;
|
|
|
|
|
|
+const time_count = 1000;
|
|
const redis_help = require('../src/use_redis');
|
|
const redis_help = require('../src/use_redis');
|
|
const video_applet_product_controllers = require('../src/data_manager/Controllers/video_applet_product_controllers');
|
|
const video_applet_product_controllers = require('../src/data_manager/Controllers/video_applet_product_controllers');
|
|
var fq_mf_create_link_task_list = []
|
|
var fq_mf_create_link_task_list = []
|
|
@@ -106,20 +106,6 @@ async function processTask(){
|
|
}
|
|
}
|
|
let main_info = CMD.getMainInfoById(MainConfig,result.data.main_id)
|
|
let main_info = CMD.getMainInfoById(MainConfig,result.data.main_id)
|
|
|
|
|
|
- let PlatformInfo = null
|
|
|
|
-
|
|
|
|
- PlatformInfo = CMD.getPlatformInfoById(PlatformConfig,main_info.tg_platform_id)
|
|
|
|
- if(PlatformInfo==null){
|
|
|
|
- await video_applet_product_controllers.updateData({id:result.data.id},{
|
|
|
|
- status:2,
|
|
|
|
- wait_status:2,
|
|
|
|
- error_info:JSON.stringify({msg:"平台配置错误:"})
|
|
|
|
- })
|
|
|
|
- console.error("平台配置错误:",result)
|
|
|
|
- throw "平台配置错误:"
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
if(main_info==null&&result.data.is_close_execution==1){
|
|
if(main_info==null&&result.data.is_close_execution==1){
|
|
let CloseMainConfig = await redis_help.getKeyValue("CloseMainConfig")
|
|
let CloseMainConfig = await redis_help.getKeyValue("CloseMainConfig")
|
|
CloseMainConfig = JSON.parse(CloseMainConfig)
|
|
CloseMainConfig = JSON.parse(CloseMainConfig)
|
|
@@ -135,6 +121,22 @@ async function processTask(){
|
|
console.error("主体配置错误:",result)
|
|
console.error("主体配置错误:",result)
|
|
throw "主体配置错误:"
|
|
throw "主体配置错误:"
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ let PlatformInfo = null
|
|
|
|
+
|
|
|
|
+ PlatformInfo = CMD.getPlatformInfoById(PlatformConfig,main_info.tg_platform_id)
|
|
|
|
+ if(PlatformInfo==null){
|
|
|
|
+ await video_applet_product_controllers.updateData({id:result.data.id},{
|
|
|
|
+ status:2,
|
|
|
|
+ wait_status:2,
|
|
|
|
+ error_info:JSON.stringify({msg:"平台配置错误:"})
|
|
|
|
+ })
|
|
|
|
+ console.error("平台配置错误:",result)
|
|
|
|
+ throw "平台配置错误:"
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
fq_mf_create_link_task_list.push({
|
|
fq_mf_create_link_task_list.push({
|
|
n_data:result.data,
|
|
n_data:result.data,
|