Commit ba4e19f6 by 任晓松

Merge remote-tracking branch 'origin/center-channel' into center-channel

parents c26d7a96 08472982
...@@ -48,12 +48,12 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -48,12 +48,12 @@ class QcCenterOrderService extends AppServiceBase {
CompanyName: solution.CompanyName, IcpType: solution.IcpType, CompanyAddress: solution.CompanyAddress, CompanyName: solution.CompanyName, IcpType: solution.IcpType, CompanyAddress: solution.CompanyAddress,
Area: solution.Area, Note: solution.Note Area: solution.Area, Note: solution.Note
}; };
if(needsolution.channelSolutionNo){ if (needsolution.channelSolutionNo) {
pushObj["BizId"] = needsolution.channelSolutionNo; pushObj["BizId"] = needsolution.channelSolutionNo;
} }
var self = this; var self = this;
//推送方案 //推送方案
this.pushIcpSolution(pushObj,needsolution.solutionNo,pobj.appInfo,self); await this.pushIcpSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self);
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
...@@ -76,7 +76,21 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -76,7 +76,21 @@ class QcCenterOrderService extends AppServiceBase {
var a = await self.reqCenterOrderApi(reqObj2);//保存渠道方案id var a = await self.reqCenterOrderApi(reqObj2);//保存渠道方案id
if (a && a.status == 0) { if (a && a.status == 0) {
//推送方案确认信息 //推送方案确认信息
await self.aliclient.reqbyget({action:"ConfirmIntention",reqbody:{BizId:pushObj.IntentionBizId},apiVersion:"2019-05-08"}); var confirmRes = await self.aliclient.reqbyget({ action: "ConfirmIntention", reqbody: { BizId: pushObj.IntentionBizId }, apiVersion: "2019-05-08" });
if (confirmRes && confirmRes.status == 0 && confirmRes.data) {
var confirmResData = confirmRes.data;
if (confirmResData.confirmUrl) {
var reqObj3 = {
actionType: "receiveIcpConfirmUrl",
appInfo: appInfo,
actionBody: {
solutionNo: solutionNo,
confirmUrl: confirmResData.confirmUrl
}
};
var a = await self.reqCenterOrderApi(reqObj3);//保存用户确认方案url
}
}
} }
} }
} }
...@@ -96,7 +110,7 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -96,7 +110,7 @@ class QcCenterOrderService extends AppServiceBase {
BizId: ab.BizId, Note: ab.Note BizId: ab.BizId, Note: ab.Note
}; };
//关闭方案 //关闭方案
this.aliclient.reqbyget({action:"CloseIcpProduce",reqbody:pushObj,apiVersion:"2019-05-08"}); this.aliclient.reqbyget({ action: "CloseIcpProduce", reqbody: pushObj, apiVersion: "2019-05-08" });
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
...@@ -132,7 +146,7 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -132,7 +146,7 @@ class QcCenterOrderService extends AppServiceBase {
}; };
var self = this; var self = this;
//推送方案材料 //推送方案材料
self.aliclient.reqbyget({action:"SavePartnerSubmitMaterial",reqbody:pushObj,apiVersion:"2019-05-08"}); self.aliclient.reqbyget({ action: "SavePartnerSubmitMaterial", reqbody: pushObj, apiVersion: "2019-05-08" });
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
...@@ -143,12 +157,12 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -143,12 +157,12 @@ class QcCenterOrderService extends AppServiceBase {
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
//推送数据至阿里 //推送数据至阿里
var pushObj = { var pushObj = {
BizId:res.data.BizId, BizId: res.data.BizId,
OfficialFileURL:res.data.OfficialFileURL, OfficialFileURL: res.data.OfficialFileURL,
ApplicationStatus:res.data.ApplicationStatus ApplicationStatus: res.data.ApplicationStatus
}; };
//推送状态变更 //推送状态变更
this.aliclient.reqbyget({action:"AcceptPartnerNotification",reqbody:pushObj,apiVersion:"2019-05-08"}); this.aliclient.reqbyget({ action: "AcceptPartnerNotification", reqbody: pushObj, apiVersion: "2019-05-08" });
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
...@@ -164,7 +178,7 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -164,7 +178,7 @@ class QcCenterOrderService extends AppServiceBase {
BizId: needsolution.channelSolutionNo, Note: ab.note BizId: needsolution.channelSolutionNo, Note: ab.note
}; };
//关闭方案 //关闭方案
this.aliclient.reqbyget({action:"CloseIcpProduce",reqbody:pushObj,apiVersion:"2019-05-08"}); this.aliclient.reqbyget({ action: "CloseIcpProduce", reqbody: pushObj, apiVersion: "2019-05-08" });
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
......
...@@ -219,7 +219,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -219,7 +219,7 @@ class UtilsNeedService extends AppServiceBase {
self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed"); self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
return system.getResultSuccess(); return system.getResultSuccess();
} else { } else {
return system.getResult(null, "close fail 100389"); return system.getResult(null, "close fail 100389 ");
} }
} }
...@@ -374,35 +374,38 @@ class UtilsNeedService extends AppServiceBase { ...@@ -374,35 +374,38 @@ class UtilsNeedService extends AppServiceBase {
} }
async writeCommunicationLog(pobj) { async writeCommunicationLog(pobj) {
if (!pobj.actionBody.BizId) { if (!pobj.actionBody.intentionBizId) {
return system.getResult(null, "actionBody.BizId can not be empty,100491"); return system.getResult(null, "actionBody.intentionBizId can not be empty,100491");
} }
if (!pobj.actionBody.Note) { if (!pobj.actionBody.note) {
return system.getResult(null, "actionBody.Note can not be empty,100492"); return system.getResult(null, "actionBody.note can not be empty,100492");
} }
var self = this; var self = this;
var reqUrl = this.centerOrderUrl + "action/need/springBoard"; var reqUrl = this.centerOrderUrl + "action/need/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
let res = await self.aliclient.reqbyget({ action: "WriteCommunicationLog", reqbody: { BizId: pobj.actionBody.BizId, Note: pobj.actionBody.Note }, apiVersion: "2019-05-08" }); let res = await self.aliclient.reqbyget({ action: "WriteCommunicationLog", reqbody: { BizId: pobj.actionBody.intentionBizId, Note: pobj.actionBody.note }, apiVersion: "2019-05-08" });
return result; return result;
} }
async queryExpertApplyCommunicationLogs(pobj) { async queryExpertApplyCommunicationLogs(pobj) {
if (!pobj.actionBody.BizId) { if (!pobj.actionBody.intentionBizId) {
return system.getResult(null, "actionBody.BizId can not be empty,100493"); return system.getResult(null, "actionBody.intentionBizId can not be empty,100493");
} }
if (!pobj.actionBody.UserFeedBack) { if (!pobj.actionBody.userFeedBack) {
return system.getResult(null, "actionBody.UserFeedBack can not be empty,100494"); return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
} }
let res = await self.aliclient.reqbyget({ let res = await self.aliclient.reqbyget({
action: "queryExpertApplyCommunicationLogs", reqbody: { action: "queryExpertApplyCommunicationLogs", reqbody: {
BeginTime: pobj.actionBody.BeginTime ? pobj.actionBody.BeginTime : "", BeginTime: pobj.actionBody.BeginTime ? pobj.actionBody.BeginTime : "",
EndTime: pobj.actionBody.EndTime ? pobj.actionBody.EndTime : "", EndTime: pobj.actionBody.EndTime ? pobj.actionBody.EndTime : "",
BizId: pobj.actionBody.BizId, BizId: pobj.actionBody.intentionBizId,
UserFeedBack: pobj.actionBody.UserFeedBack, UserFeedBack: pobj.actionBody.userFeedBack,
PageNum: pobj.actionBody.pageNum || 1,
PageSize: pobj.actionBody.pageSize || 10,
apiVersion: "2019-05-08" apiVersion: "2019-05-08"
} }
}); });
console.log(res);
return res; return res;
} }
...@@ -427,4 +430,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -427,4 +430,7 @@ class UtilsNeedService extends AppServiceBase {
module.exports = UtilsNeedService; module.exports = UtilsNeedService;
// var a=new UtilsNeedService(); // var a=new UtilsNeedService();
// a.test1(); // a.queryExpertApplyCommunicationLogs({intentionBizId:20200803095203000001,userFeedBack:true});
\ No newline at end of file
...@@ -60,7 +60,8 @@ var settings = { ...@@ -60,7 +60,8 @@ var settings = {
}, },
qifuH5PayNotifyUrl: function () { qifuH5PayNotifyUrl: function () {
if (this.env == "dev") { if (this.env == "dev") {
return "http://gsb.qifu.gongsibao.com:4012/tlpay/notify"; // return "http://gsb.qifu.gongsibao.com:4012/tlpay/notify";
return "http://gsb.qifu-dev.gongsibao.com/tlpay/notify"// 2020 0804 lin 修改测试环境tl回调地址
} else { } else {
return "http://gsb.qifu.gongsibao.com/tlpay/notify"; return "http://gsb.qifu.gongsibao.com/tlpay/notify";
} }
......
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