Commit 1c9e83fe by 王栋源

wdy

parent 001c7528
...@@ -225,6 +225,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -225,6 +225,7 @@ class UtilsNeedService extends AppServiceBase {
intentionBizId: pobj.actionBody.channelNeedNo, intentionBizId: pobj.actionBody.channelNeedNo,
status: "closeNeed" status: "closeNeed"
}, },
opType:"updateChanceStatus",
appInfo: pobj.appInfo appInfo: pobj.appInfo
} }
self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus"); self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
...@@ -303,7 +304,23 @@ class UtilsNeedService extends AppServiceBase { ...@@ -303,7 +304,23 @@ class UtilsNeedService extends AppServiceBase {
pobj.actionType = "receiveIcpStatusNotify"; pobj.actionType = "receiveIcpStatusNotify";
var url = settings.centerOrderUrl() + "action/qcapi/springBoard"; var url = settings.centerOrderUrl() + "action/qcapi/springBoard";
var rtn = await this.restPostUrl(pobj, url); var rtn = await this.restPostUrl(pobj, url);
if (rtn.status == 0 && actionBody.status != 1 && rtn.data) { if( actionBody.status == 2){
var deliveryObj = {
actionBody: {
orderNo: rtn.data.orderNo,//pobj.actionBody.channelOrder.channelOrderNo,
needsolution: rtn.data.solutionContent,
channelNeedNo: rtn.data.channelNeedNo,
channelSolutionNo: rtn.data.channelSolutionNo,
servicer: {
code: 'gsb',
name: '公司宝'
}
},
appInfo: pobj.appInfo
}
this.utilsPushSve.aliBusiness2Delivery(deliveryObj, "pushDeliveryOrder");
}
if (rtn.status == 0 && actionBody.status != 1 && actionBody.status != 2 && rtn.data) {
var tmpObj = { var tmpObj = {
actionBody: { actionBody: {
orderNo: rtn.data.orderNo, orderNo: rtn.data.orderNo,
...@@ -430,6 +447,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -430,6 +447,7 @@ class UtilsNeedService extends AppServiceBase {
PageSize: pobj.actionBody.pageSize || 10, PageSize: pobj.actionBody.pageSize || 10,
}, apiVersion: "2019-05-08" }, apiVersion: "2019-05-08"
}); });
console.log(res)
return system.getResultSuccess(res); return system.getResultSuccess(res);
} }
...@@ -444,12 +462,6 @@ class UtilsNeedService extends AppServiceBase { ...@@ -444,12 +462,6 @@ class UtilsNeedService extends AppServiceBase {
} }
// async updatestatusali(){
// var sql="select * from n_need_info WHERE followContent is not null and typeCode in ('icpsq','edisq')"
// }
urlSplit(url) { urlSplit(url) {
var arr = url.split("?")[1]; //根据?跟个url var arr = url.split("?")[1]; //根据?跟个url
var arr2 = arr[1].split("&"); //根据&重新分割参数 var arr2 = arr[1].split("&"); //根据&重新分割参数
......
...@@ -20,7 +20,7 @@ class UtilsPushService extends AppServiceBase { ...@@ -20,7 +20,7 @@ class UtilsPushService extends AppServiceBase {
op: "service/impl/utilsSve/utilsPushSve.js/service/app.base.js/aliBusiness2Delivery", op: "service/impl/utilsSve/utilsPushSve.js/service/app.base.js/aliBusiness2Delivery",
content: JSON.stringify(pobj), content: JSON.stringify(pobj),
resultInfo: productItemInterfaceResult.data ? JSON.stringify(productItemInterfaceResult.data) : "接口数据为空", resultInfo: productItemInterfaceResult.data ? JSON.stringify(productItemInterfaceResult.data) : "接口数据为空",
optitle: pobj.opType + "推送蜂擎获取的接口信息->aliBusiness2Delivery", optitle: opType + "推送蜂擎获取的接口信息->aliBusiness2Delivery",
}); });
if (pobj.interface_info) { if (pobj.interface_info) {
await this.pushBusInfo(pobj, opType, 1); await this.pushBusInfo(pobj, opType, 1);
......
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