Commit 2f7c5dfc by 张庆香

add LeadsCreate by zqx

parent d1b9196b
......@@ -526,7 +526,7 @@ class TxHandler {
}
async ServiceCreate(datajson) {//获取融易算服务实例到队列
async ServiceCreate(datajson) { //获取融易算服务实例到队列
try {
var rc = system.getObject("util.execClient");
var requrl = this.queueUrl;
......@@ -553,8 +553,7 @@ class TxHandler {
"errorMsg": "ok",
"data": null
}
}
else {
} else {
return {
"requestId": datajson.requestId,
"success": false,
......@@ -564,8 +563,7 @@ class TxHandler {
}
}
}
catch (error) {
} catch (error) {
return {
"requestId": datajson.requestId,
"success": false,
......@@ -611,6 +609,33 @@ class TxHandler {
// }
// }
async LeadsCreate(datajson) {
try {
var rc = system.getObject("util.execClient");
var requrl = this.queueUrl //改队列
var params = {
"actionType":   "produceData",
"actionBody":  {          
"pushUrl":  this.icUrl  +  "/bizOptCtl",
"actionType":   "insertInfo",
"identifyCode":   "book-manage",
"messageBody":  datajson,
"headData": null //
},
"requestId": datajson.requestId
}
var  rtn  =  await  rc.execPost(params,  requrl);      
var  j  =  JSON.parse(rtn.stdout);      
if  (j.status  ==  1)  {        
return  system.getResult("获取数据成功!");      
}      
else  {        
return  system.getResultError("获取数据失败!");      
}
} catch (error) {
return system.getResultError(error)
}
}
}
module.exports = new TxHandler();
......@@ -633,4 +658,3 @@ module.exports = new TxHandler();
// console.log(JSON.stringify(d));
// console.log("dddddddddddddd");
// })()
\ No newline at end of file
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