Commit 0306dd7e by 兰国旗

laolan

parent 2826fff3
......@@ -29,8 +29,7 @@ class RegAPI extends APIBase {
opResult = await this.regCenterOrderSve.submitRegNeed(pobj, pobj.actionBody);
break;
case "regFeedbackSubmit"://接收方案反馈信息
pobj.actionType = "regFeedbackSubmit";
opResult = await this.regCenterOrderSve.reqCenterOrderRegApi(pobj);
opResult = await this.regCenterOrderSve.regFeedbackSubmit(pobj);
break;
case "regOrderStatus"://reg方案更新
opResult = await this.regCenterOrderSve.regOrderStatus(pobj, pobj.actionBody);
......
......@@ -26,28 +26,7 @@ class RegCenterOrderService extends AppServiceBase {
var data = JSON.parse(rtn.stdout);
return data;
}
//调用center-order reg需求反馈 2.2
async reqCenterOrderRegApi(pobj, reqUrl) {
var url = this.centerOrderUrl + "action/regapi/springBoard";
if (reqUrl) {
var url = this.centerOrderUrl + reqUrl;
}
var self = this;
pobj.actionType = "regFeedbackSubmit";
if (pobj.actionBody && pobj.actionBody.intentionStatus) {
pobj.intentionStatus = pobj.actionBody.intentionStatus;
}
var rtn = await this.execClient.execPost(pobj, url);
if (pobj.intentionStatus) {
// 如果需求当前字段为5(已关闭)则通知fq
if (pobj.intentionStatus == 5) {
self.utilsPushSve.baiduBusiness2Fq(pobj, "pushCloseICPNeed");
}
}
var data = JSON.parse(rtn.stdout);
return data;
}
//-----------接入百度reg-----start--------laolan---2020.12.17----------------------
async regPaySuccess(pobj) {
......@@ -262,6 +241,29 @@ async regPaySuccess(pobj) {
}
return result;
}
//reg需求反馈 2.2
async regFeedbackSubmit(pobj, reqUrl) {
var url = this.centerOrderUrl + "action/regapi/springBoard";
if (reqUrl) {
var url = this.centerOrderUrl + reqUrl;
}
var self = this;
pobj.actionType = "regFeedbackSubmit";
if (pobj.actionBody && pobj.actionBody.intentionStatus) {
pobj.intentionStatus = pobj.actionBody.intentionStatus;
}
var rtn = await this.execClient.execPost(pobj, url);
if (pobj.intentionStatus) {
// 如果需求当前字段为5(已关闭)则通知fq
if (pobj.intentionStatus == 5) {
self.utilsPushSve.baiduBusiness2Fq(pobj, "pushCloseICPNeed");
}
}
var data = JSON.parse(rtn.stdout);
return data;
}
//状态更新
async regOrderStatus(pobj) {
var actionBody = pobj.actionBody;
......
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