Commit c82b8619 by 宋毅

tj

parent b171e0ad
......@@ -24,7 +24,7 @@ class IcbcOrderNotify extends APIBase {
}
async opActionProcess(pobj, action_type, req) {
var opResult = null;
this.logCtl.error({
this.logCtl.info({
appid: pobj.appInfo.uapp_id,
appkey: pobj.appInfo.uapp_key,
requestId: req.requestId,
......@@ -36,9 +36,7 @@ class IcbcOrderNotify extends APIBase {
});
switch (action_type) {
case "icOrderStatusNotify"://工商状态通知
opResult = system.getResultSuccess();
//TODO:操作通知
// opResult = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
opResult = await this.utilsOrderSve.icOrderStatusNotify(pobj, pobj.actionBody);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
......
......@@ -77,16 +77,29 @@ class UtilsOrderService extends AppServiceBase {
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
async getOrderInfo(pobj, actionBody) {
async getOrderInfo(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/order/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
async getOrderDeliveryInfo(pobj, actionBody) {
if (!actionBody.orderNo) {
return system.getResult(null, "actionBody.orderNo can not be empty");
}
var reqUrl = this.centerOrderUrl + "action/order/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
async icOrderStatusNotify(pobj, actionBody) {
if (!actionBody.orderNo) {
return system.getResult(null, "actionBody.orderNo can not be empty");
}
var reqUrl = this.centerOrderUrl + "notifyaction/oporder/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
/**
* 获取H5支付地址
* @param {*} pobj
......
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