Commit 345ef05d by 兰国旗

laolan

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