Commit a9543454 by 王栋源

wdy

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