Commit 9ac6af0f by Sxy

fix: 返回队列code

parent 999334ed
......@@ -16,7 +16,7 @@ class AliHandler {
* @param {*} datajson
*/
//新商机处理
async addChance (datajson) {
async addChance(datajson) {
console.log("put in queue [addChance]", datajson);
try {
var cachestr = sha235(JSON.stringify(datajson));
......@@ -71,7 +71,7 @@ class AliHandler {
}
}
async updateChanceStatus (datajson) {
async updateChanceStatus(datajson) {
console.log("put in queue [updateChanceStatus]" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
try {
var cachestr = sha235(JSON.stringify(datajson));
......@@ -112,6 +112,9 @@ class AliHandler {
}
let rtn = await rc.execPost3({ "d": stau }, requrl);//更新商机状态为已完成
var j = JSON.parse(rtn.stdout);
if (j.status == 0) {
j.status = 1;
}
return j
}
} catch (error) {
......@@ -121,7 +124,7 @@ class AliHandler {
//退回商机处理
async needClose (datajson) {
async needClose(datajson) {
console.log("put in queue" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
try {
var cachestr = sha235(JSON.stringify(datajson));
......@@ -200,7 +203,7 @@ class AliHandler {
}
//交付单处理
async pushOrderDelivery (datajson, channelobj) {
async pushOrderDelivery(datajson, channelobj) {
console.log("put in queue-----------------------------------------------------------------------------------------------------", datajson);
try {
console.log("交付单数据:" + JSON.stringify(datajson));
......@@ -316,7 +319,7 @@ class AliHandler {
}
//客户状态处理
async deliveryNotify (datajson) {
async deliveryNotify(datajson) {
try {
var cachestr = sha235(JSON.stringify(datajson));
var cacheInfo = await this.cacheManager["AliCache"].getCache(cachestr);
......@@ -402,7 +405,7 @@ class AliHandler {
}
}
async actionBodyHandler (actionBody) {
async actionBodyHandler(actionBody) {
let data = actionBody;
let obj = {};
obj.baseInfo = {};
......
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