Commit a896429a by 宋毅

tj

parent 89ec2edc
......@@ -72,8 +72,22 @@ class TmOrderAPI extends APIBase {
pobj.actionBody.channelOrder.orderStatus = 2;//订单状态dfk: 1: 待付款, 2: 已付款, 4: 待服务, 8: 已完成
pobj.actionBody.channelOrder.buyerMoblie = pobj.actionBody.buyerMoblie;
pobj.actionBody.channelOrder.email = pobj.actionBody.email;
opResult = await this.orderSve.addQifuOrder(pobj, pobj.actionBody, req);
if (opResult.status == 0 && opResult.serviceCode && pobj.actionBody.buyerMoblie) {
pobj.actionBody = {
idempotentId: opResult.data.orderNo,// 是 业务 ID
idempotentSource: req.app.appSourceCode ? "ic_" + req.app.appSourceCode : "tm_1688",// 是 业务来源(ali、jd)
idempotentSourceName: req.app.name || "1688应用",// 是 阿里,京东
city: "",// 否 所属城市
phone: pobj.actionBody.buyerMoblie,// 是 手机号
userId: pobj.actionBody.channelUserId,// 否 用户 ID
companyName: "",// 否 公司名称
orderPrice: opResult.totalSum,// 是 订单金额
productId: opResult.serviceCode,// 是 产品 ID
productQuantity: 1,// 是 产品数量
};
await this.orderSve.againPushFqBusiness(pobj, req);
}//推送商机到峰擎
break;
case "getOrderInfo":
opResult = await this.orderSve.getOrderInfo(pobj, action_body, req);
......
......@@ -11,6 +11,7 @@ class OrderService extends ServiceBase {
this.receiptvoucherDao = system.getObject("db.dborder.receiptvoucherDao");
this.customercontactsDao = system.getObject("db.dborder.customercontactsDao");
this.execClient = system.getObject("util.execClient");
//aliyunClient
// this.fqReqUrl = "https://yunfuapi.gongsibao.com";//线上域名
this.fqReqUrl = "https://yunfuapi-dev.gongsibao.com";//dev域名
this.restClient = system.getObject("util.restClient");
......@@ -782,7 +783,7 @@ class OrderService extends ServiceBase {
});
}
}
async getIcbcOrderDetails(pobj, req) {//获取工商详情
async getIcbcOrderDetails(pobj, req) {//通过峰擎阿里云接口获取工商详情
var rc = system.getObject("util.aliyunClient");
var rtn = null;
var reqUrl = this.fqReqUrl + "/bigData/ic/formDetail";
......
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