Commit 095d4493 by 宋毅

tj

parent 4f913b08
......@@ -32,7 +32,7 @@ class ProductAPI extends WEBBase {
case "addOrder"://创建订单
opResult = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
//处理推送到峰擎
// opType:值为query、add
// opType:值为query、add
this.pushNewFq(pobj, opResult);
break;
case "addOrderWeb"://创建订单 官网
......@@ -93,10 +93,10 @@ class ProductAPI extends WEBBase {
opResult = await this.utilsOrderSve.pushTest(pobj, pobj.actionBody);
break;
case "receiveAliTmOrder"://接收阿里商标订单
opResult = await this.utilsOrderSve.receiveAliTmOrder(pobj,pobj.actionBody);
opResult = await this.utilsOrderSve.receiveAliTmOrder(pobj, pobj.actionBody);
break;
case "receiveAliTmOrderRefund"://接收阿里商标订单退款信息
opResult = await this.utilsOrderSve.receiveAliTmOrderRefund(pobj,pobj.actionBody);
opResult = await this.utilsOrderSve.receiveAliTmOrderRefund(pobj, pobj.actionBody);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
......@@ -106,6 +106,7 @@ class ProductAPI extends WEBBase {
}
async pushNewFq(pobj, result) {
this.execClientNew.execLogs("pushNewFq-1", pobj, "center-channel-order-pushNewFq", result, null);
if (result.status == 0 && result.data && result.data.channelOrderNo) {
try {
pobj.actionType = "getOrderInfoByChannelOrderNo";
......
......@@ -25,6 +25,7 @@ class UtilsOrderService extends AppServiceBase {
async pushNewFqByChannelOrderNo(pobj) {
let url = this.centerOrderUrl + "opaction/order/springBoard";
let opResult = await this.restPostUrl(pobj, url);
this.execClientNew.execLogs("pushNewFq-2", pobj, "center-channel-utilsOrderSve-pushNewFqByChannelOrderNo", opResult, null);
if (opResult.status == 0) {
opResult.data.appInfo = {
uapp_id: appInfo.uapp_id,
......@@ -41,6 +42,7 @@ class UtilsOrderService extends AppServiceBase {
appInfo: opResult.data.appInfo,
actionBody: opResult.data
}
this.execClientNew.execLogs("pushNewFq-3", tmpPobj, "center-channel-utilsOrderSve-pushNewFqByChannelOrderNo-pushBusInfo", "pushOrder", null);
this.utilsPushSve.pushBusInfo(tmpPobj, "pushOrder", 1);
}
}
......@@ -67,7 +69,7 @@ class UtilsOrderService extends AppServiceBase {
}
var buyTotalSum = Number(actionBody.totalSum || 0);
var buyPayTotalSum = Number(actionBody.payTotalSum || 0);
this.execClientNew.execLogs("isOrderVerify-4", { buyTotalSum: buyTotalSum, buyPayTotalSum: buyPayTotalSum, totalSum: totalSum }, "center-channel-utilsOrderSve-isOrderVerify", actionBody, null);
this.execClientNew.execLogs("isOrderVerify-5", actionBody, "center-channel-utilsOrderSve-isOrderVerify", null, null);
if (buyTotalSum === 0) {
buyTotalSum = totalSum;
actionBody.totalSum = totalSum;
......
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