Commit a9543454 by 王栋源

wdy

parent ddc9f528
...@@ -247,7 +247,6 @@ class CenterorderService extends AppServiceBase { ...@@ -247,7 +247,6 @@ class CenterorderService extends AppServiceBase {
channelOrderNo: pobj.actionBody.orderNo, channelOrderNo: pobj.actionBody.orderNo,
orderStatus: 2 orderStatus: 2
} }
debugger;
var orderrtn = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody); var orderrtn = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
if (orderrtn.status != 0 && orderrtn.status != -1) { if (orderrtn.status != 0 && orderrtn.status != -1) {
return system.getResultFail(-5012, "订单创建失败"); return system.getResultFail(-5012, "订单创建失败");
...@@ -259,15 +258,12 @@ class CenterorderService extends AppServiceBase { ...@@ -259,15 +258,12 @@ class CenterorderService extends AppServiceBase {
pobj.actionType = "receiveSolutionPayInfo"; pobj.actionType = "receiveSolutionPayInfo";
var url = settings.centerOrderUrl() + "action/icapi/springBoard"; var url = settings.centerOrderUrl() + "action/icapi/springBoard";
debugger;
console.log(pobj);
var solutionrtn = await this.execClient.execPost(pobj, url); var solutionrtn = await this.execClient.execPost(pobj, url);
console.log(solutionrtn); console.log(solutionrtn);
if (!solutionrtn || !solutionrtn.stdout) { if (!solutionrtn || !solutionrtn.stdout) {
return system.getResultFail(-5011, "方案查询失败"); return system.getResultFail(-5011, "方案查询失败");
} }
var solutiondata = JSON.parse(solutionrtn.stdout); var solutiondata = JSON.parse(solutionrtn.stdout);
console.log("-------------------------------------------------------------");
if (solutiondata.status != 0) { if (solutiondata.status != 0) {
return system.getResultFail(-5011, "方案查询失败"); return system.getResultFail(-5011, "方案查询失败");
} }
...@@ -279,21 +275,15 @@ class CenterorderService extends AppServiceBase { ...@@ -279,21 +275,15 @@ class CenterorderService extends AppServiceBase {
} else if (pobj.actionBody.channelItemCode == '7') { } else if (pobj.actionBody.channelItemCode == '7') {
pobj.actionBody.regType = "ali.edi"; pobj.actionBody.regType = "ali.edi";
} }
console.log("-------------------------------------------------------------"); pobj.actionBody={
console.log(solutiondata); "area": pobj.actionBody.province,
var fqobj = { "city": pobj.actionBody.province,
"actionType": "getOrderDetails", "regType": pobj.actionBody.regType,
"actionBody": "orderNo": pobj.actionBody.channelOrder.channelOrderNo,
{ "orderPrice": pobj.actionBody.orderPrice,
"area": pobj.actionBody.province, "phone": pobj.actionBody.mobile,
"city": pobj.actionBody.province, "needId": solutiondata.data.channelNeedNo
"regType": pobj.actionBody.regType, };
"orderNo": pobj.actionBody.channelOrder.channelOrderNo,
"orderPrice": pobj.actionBody.orderPrice,
"phone": pobj.actionBody.mobile,
"needId": solutiondata.data.channelNeedNo
}
}
console.log(fqobj); console.log(fqobj);
console.log("-------------------------------------------------------------"); console.log("-------------------------------------------------------------");
this.utilsPushSve.aliBusiness2Fq(fqobj, "pushOrderICPBusiness"); this.utilsPushSve.aliBusiness2Fq(fqobj, "pushOrderICPBusiness");
......
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