Commit 4fef0782 by 宋毅

处理百度

parent 932cf2ef
...@@ -175,7 +175,6 @@ class BaseCenterOrderService extends AppServiceBase { ...@@ -175,7 +175,6 @@ class BaseCenterOrderService extends AppServiceBase {
if (needsolution.channelSolutionNo) { if (needsolution.channelSolutionNo) {
pushObj["BizId"] = needsolution.channelSolutionNo; pushObj["BizId"] = needsolution.channelSolutionNo;
} }
console.log('pushObj++', pushObj);
var pushIcpSolutionRes = await this.pushEnameIcpSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self); var pushIcpSolutionRes = await this.pushEnameIcpSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self);
} }
this.logCtl.info({ this.logCtl.info({
......
...@@ -7,6 +7,7 @@ const regCfg = require("../../../api/impl/ic/regCfg"); ...@@ -7,6 +7,7 @@ const regCfg = require("../../../api/impl/ic/regCfg");
class RegCenterOrderService extends AppServiceBase { class RegCenterOrderService extends AppServiceBase {
constructor() { constructor() {
super(); super();
this.execClientNew = system.getObject("util.execClientNew");
this.centerOrderUrl = settings.centerOrderUrl(); this.centerOrderUrl = settings.centerOrderUrl();
this.execClient = system.getObject("util.execClient"); this.execClient = system.getObject("util.execClient");
this.cacheManager = system.getObject("db.common.cacheManager"); this.cacheManager = system.getObject("db.common.cacheManager");
...@@ -162,7 +163,7 @@ class RegCenterOrderService extends AppServiceBase { ...@@ -162,7 +163,7 @@ class RegCenterOrderService extends AppServiceBase {
var salesmanObj = { var salesmanObj = {
appInfo: pobj.appInfo, appInfo: pobj.appInfo,
actionType: "addRegSalesmanInfo",//添加业务员信息 actionType: "addRegSalesmanInfo",//添加业务员信息
actionBody: { salesmanInfo: salesmanInfo, orderNo: orderrtn.data.orderNo } actionBody: {salesmanInfo: salesmanInfo, orderNo: orderrtn.data.orderNo}
}; };
var url = settings.centerOrderUrl() + "action/regapi/springBoard"; var url = settings.centerOrderUrl() + "action/regapi/springBoard";
var addRes = await this.execClient.execPost(salesmanObj, url); var addRes = await this.execClient.execPost(salesmanObj, url);
...@@ -548,7 +549,10 @@ class RegCenterOrderService extends AppServiceBase { ...@@ -548,7 +549,10 @@ class RegCenterOrderService extends AppServiceBase {
note: pobj.actionBody.note note: pobj.actionBody.note
} }
// 推送baidu // 推送baidu
var tmpResult = await this.baiduRegClient.baiduReqbyget({ path: "/v1/provider/demand?close=", reqbody: pushObj }); var tmpResult = await this.baiduRegClient.baiduReqbyget({
path: "/v1/provider/demand?close=",
reqbody: pushObj
});
//查看日志 //查看日志
this.logCtl.info({ this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "", appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
...@@ -574,11 +578,11 @@ class RegCenterOrderService extends AppServiceBase { ...@@ -574,11 +578,11 @@ class RegCenterOrderService extends AppServiceBase {
//提交交付信息/修改订单状态 //提交交付信息/修改订单状态
async regUpdateOrderStatus(pobj) { async regUpdateOrderStatus(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/regapi/springBoard"); let self = this;
console.log('推送交付信息/修改订单状态res+++++', res) let res = await this.reqCenterOrderApi(pobj, "action/regapi/springBoard");
console.log('推送交付信息/修改订单状态++pobj+++', pobj) this.execClientNew.execLogs("regUpdateOrderStatus-reqCenterOrderApi:", pobj, "center-channel-regUpdateOrderStatus", res, null);
var deliverContent = {} let deliverContent = {}
var pushObj = {} let pushObj = {}
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
if (pobj.actionBody.deliverContent) { if (pobj.actionBody.deliverContent) {
if (pobj.actionBody.deliverContent.companyInfo && pobj.actionBody.deliverContent.companyInfo.serviceArea) { if (pobj.actionBody.deliverContent.companyInfo && pobj.actionBody.deliverContent.companyInfo.serviceArea) {
...@@ -636,18 +640,16 @@ class RegCenterOrderService extends AppServiceBase { ...@@ -636,18 +640,16 @@ class RegCenterOrderService extends AppServiceBase {
}; };
} }
} }
var self = this; let baiduParams = {path: "/v1/provider/comreg", reqbody: pushObj}
//推送交付信息/修改订单状态 //推送交付信息/修改订单状态
var baidu = await self.baiduRegClient.baiduReqbyget({ path: "/v1/provider/comreg", reqbody: pushObj }); let baidu = await self.baiduRegClient.baiduReqbyget(baiduParams);
console.log('推送交付信息/修改订单状态baidu+++', baidu) this.execClientNew.execLogs("regUpdateOrderStatus-baiduReqbyget:", baiduParams, "center-channel-regUpdateOrderStatus", baidu, null);
console.log('推送交付信息/修改订单状态pushObj+++', pushObj)
//todo 推送云服订单所有交付单状态为完成时订单状态为完成的判断 //todo 推送云服订单所有交付单状态为完成时订单状态为完成的判断
// if(res.data.deliveryFlag && res.data.deliveryFlag2 && 200 == res.data.deliveryFlag == res.data.deliveryFlag2){ // if(res.data.deliveryFlag && res.data.deliveryFlag2 && 200 == res.data.deliveryFlag == res.data.deliveryFlag2){
// await this.utilsPushSve.business2Channel("蜂擎参数", "更新订单完成状态的方法"); // await this.utilsPushSve.business2Channel("蜂擎参数", "更新订单完成状态的方法");
// } // }
return baidu.data return baidu.data
} }
console.log('rsrsr++++------------++++', res)
} }
return res return res
} }
...@@ -672,7 +674,7 @@ class RegCenterOrderService extends AppServiceBase { ...@@ -672,7 +674,7 @@ class RegCenterOrderService extends AppServiceBase {
reqbody: pushObj reqbody: pushObj
}); });
if (ress.data.status != 0) { if (ress.data.status != 0) {
return system.getResultFail(-1,ress.data.msg) return system.getResultFail(-1, ress.data.msg)
} }
console.log("regWriteCommunicationLog---------", ress) console.log("regWriteCommunicationLog---------", ress)
} }
......
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