Commit e0357f00 by 兰国旗

易名获取沟通记录

parent f796b187
......@@ -4,6 +4,7 @@ const AppServiceBase = require("../../app.base");
const fs = require("fs");
const { json } = require("sequelize");
const { getResult, getResultSuccess } = require("../../../system");
const { type } = require("os");
//区分渠道的uappid
const uappId = {
'ali': 18, //(阿里icp、edi)
......@@ -196,14 +197,15 @@ class UtilsNeedService2 extends AppServiceBase {
console.log('ename+++queryExpertApplyCommunicationLogs---res---', res)
}
}
console.log('ename--res--',res)
//判断易名是否有写接口
// let enameFollowContent = [];
if(res && res.status == 0 && res.data && res.data.stdout == ""){//先判断没有写接口的情况
if(result && result.status == 0 && result.data){
if(result.data.followContent[0].indexOf('提交方案') > -1){
result.data.followContent.splice(result.data.followContent[0].indexOf('提交方案'),1);
// enameFollowContent = result.data.followContent;
if(result && result.status == 0 && result.data && result.data.followContent){
for (let i = 0; i < result.data.followContent.length; i++) {
if(typeof(result.data.followContent[i]) == 'string'){
if(result && result.data && result.data.followContent && (JSON.parse(result.data.followContent[i])[0].content).indexOf('提交方案') > -1){
result.data.followContent.splice(i,1);
}
}
}
result.data['Data'] = result.data.followContent;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment