Commit 87a305e0 by 庄冰

aaa

parent a3177c94
...@@ -1655,6 +1655,42 @@ class UtilsOrderService extends AppServiceBase { ...@@ -1655,6 +1655,42 @@ class UtilsOrderService extends AppServiceBase {
let result = await this.restPostUrl(actionBody, url); let result = await this.restPostUrl(actionBody, url);
return result return result
} }
/**
* 接收阿里商标订单
* @param {*} pobj
* @param {*} actionBody
*/
async receiveAliTmOrder(pobj, actionBody) {
if (!actionBody.channelItemCode) {
return system.getResult(null, "产品编码有误,100010");
}
pobj.actionType = "getProductDetail";
var url = settings.centerAppUrl() + "action/opProduct/springBoard";
var productItemResult = await this.execPostByTimeOut(null, pobj, url);
if (productItemResult.status != 0) {
return productItemResult;
}
if (productItemResult.data.status != 0) {
return productItemResult.data;
}
pobj.productInfo = productItemResult.data.data;
pobj.productInfo.price_item = pobj.productInfo.price_list[0];
pobj.actionType = "receiveAliTmOrder";
var reqUrl = this.centerOrderUrl + "action/order/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
/**
* 接收阿里订单退款信息git
* @param {*} pobj
* @param {*} actionBody
*/
async receiveAliTmOrderRefund(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/order/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
} }
module.exports = UtilsOrderService; module.exports = UtilsOrderService;
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