Commit c82b8619 by 宋毅

tj

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