|
@@ -103,7 +103,7 @@ CMD.getPullDataConfig = async function() {
|
|
|
fun:"get_all_pull_data_list",
|
|
|
data:{}
|
|
|
};
|
|
|
- axios.post('http://127.0.0.1:9100/tg/back/api', postData)
|
|
|
+ return await axios.post('http://127.0.0.1:9100/tg/back/api', postData)
|
|
|
.then(response => {
|
|
|
redis_help.setKeyValue("PullDataConfig",JSON.stringify(response.data.data))
|
|
|
})
|
|
@@ -212,6 +212,7 @@ async function recvMessage(data){
|
|
|
case "updatePullConig": //同步拉取配置
|
|
|
{
|
|
|
await CMD.getPullDataConfig()
|
|
|
+ await new Promise(resolve=>setTimeout(resolve,100))
|
|
|
const postData = {
|
|
|
cmd:"filter_task",
|
|
|
fun:json_msg.cmd,
|