Commit 345ef05d by 兰国旗

laolan

parent be115195
......@@ -402,9 +402,11 @@ async regPaySuccess(pobj) {
console.log('bizTypes-----',bizTypes)
bizTypes = JSON.parse(bizTypes)
console.log('bizTypes++++',bizTypes)
bizTypes.solution.serviceArea = regCfg.baiduAreaCode[bizTypes.solution.serviceArea]
bizTypes.solution.area = regCfg.baiduAreaCode[bizTypes.solution.area]
bizTypes.solution.serviceArea = bizTypes.solution.area
var list = {
gsbBizId:needsolutions[i].solutionNo,
// bizType:"GSREG",
bizType:bizTypes.bizType,
solutionContent:bizTypes.solution
}
......@@ -435,7 +437,7 @@ async regPaySuccess(pobj) {
},
appInfo: pobj.appInfo
}
await this.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
await this.utilsPushSve.baiduBusiness2Delivery(reqParams, "updateChanceStatus");
}
return res;
}
......@@ -447,7 +449,7 @@ async regPaySuccess(pobj) {
var pushRes = await self.baiduRegClient.baiduReqbyget({ path: "/v1/provider/demand?submitSolutions=", reqbody: pushObj });
console.log("pushRes----",pushRes)
if (pushRes && pushRes.status == 0 && pushRes.data) {
var resData = pushRes.data;
var resData = pushRes.data.data;
if (resData.infos) {
var reqObj2 = {
actionType: "saveReginfo",
......@@ -470,7 +472,10 @@ async regPaySuccess(pobj) {
var result = await this.restPostUrl(pobj, reqUrl);
console.log('regNeedClose+++result', result)
var i;
var len = result.data.length
var len;
if(result && result.data ){
len = result.data.length
}
var orders = []
if (result.status == 0) {
for(i=0;i<len;i++){
......@@ -486,13 +491,13 @@ async regPaySuccess(pobj) {
//推送交付系统
var reqParams = {
actionBody: {
intentionBizId: pobj.actionBody.needNo,
intentionBizId: pobj.actionBody.channelNeedNo,
status: "closeNeed"
},
opType: "updateChanceStatus",
appInfo: pobj.appInfo
}
this.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
this.utilsPushSve.baiduBusiness2Delivery(reqParams, "updateChanceStatus");
//日志记录
this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
......@@ -504,12 +509,13 @@ async regPaySuccess(pobj) {
optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery",
});
var pushObj = {
IntentionBizId: pobj.actionBody.needNo,
Note: pobj.actionBody.note
intentionBizId: pobj.actionBody.channelNeedNo,
note: pobj.actionBody.note
}
console.log('pushObj----/////',pushObj)
// 推送baidu
var a = await this.baiduRegClient.baiduReqbyget({ path: "/v1/provider/demand?close=", pushObj});
console.log('regNeedClose+++', a)
var a = await this.baiduRegClient.baiduReqbyget({ path: "/v1/provider/demand?close=", reqbody:pushObj});
console.log('regNeedClose+++a----', a)
//查看日志
this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
......@@ -520,7 +526,7 @@ async regPaySuccess(pobj) {
resultInfo: "",
optitle: "推送baidu-reg关闭需求->closeNeed",
});
this.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
this.utilsPushSve.baiduBusiness2Fq(pobj, "pushCloseICPNeed");
}
return result;
......@@ -568,12 +574,12 @@ async regPaySuccess(pobj) {
var pushObj = {}
if (result && result.status == 0 && result.data) {
pushObj = {
requirementId: pobj.actionBody.intentionBizId,
intentionBizId: pobj.actionBody.intentionBizId,
note: pobj.actionBody.note
}
if (result.data == regCfg.uappId.baidu) {
var ress = await self.baiduRegClient.baiduReqbyget({ path: "/v1/provider/demand?addCommRecord=", reqbody: pushObj });
console.log("baidu+res", ress)
console.log("regWriteCommunicationLog---------", ress)
}
}
......@@ -586,7 +592,7 @@ async regPaySuccess(pobj) {
opType: "updateChanceStatus",
appInfo: pobj.appInfo
}
self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
self.utilsPushSve.baiduBusiness2Delivery(reqParams, "updateChanceStatus");
var fqobj = {
actionBody: {
"bizId": pobj.actionBody.intentionBizId,
......@@ -596,7 +602,7 @@ async regPaySuccess(pobj) {
opType: "aliFollowup",
appInfo: pobj.appInfo
}
self.utilsPushSve.aliBusiness2Fq(fqobj, "aliFollowup");
self.utilsPushSve.baiduBusiness2Fq(fqobj, "aliFollowup");
return system.getResultSuccess();
}
......
......@@ -19,7 +19,7 @@ module.exports = {
"getParamsFor360", "addOrderWeb", "getPayRecords", "getLoginInfo", "putUserMobileByVcode",
"putUserPwdByMobile", "icpNotifyNew",
//百度工商注册
"submitRegSolution","writeRegCommunicationLog","queryExpertRegCommunicationLogs","updateOrdertatus","closeBdRegNeed"
"regSubmitSolution","regWriteCommunicationLog","regQueryExpertCommunicationLogs","regUpdateOrderStatus","regNeedClose","regGetInfoByChannelNeedNo"
],
apiMustUserpinList: [
"icpOrderClose",
......
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