Commit 0306dd7e by 兰国旗

laolan

parent 2826fff3
...@@ -29,8 +29,7 @@ class RegAPI extends APIBase { ...@@ -29,8 +29,7 @@ class RegAPI extends APIBase {
opResult = await this.regCenterOrderSve.submitRegNeed(pobj, pobj.actionBody); opResult = await this.regCenterOrderSve.submitRegNeed(pobj, pobj.actionBody);
break; break;
case "regFeedbackSubmit"://接收方案反馈信息 case "regFeedbackSubmit"://接收方案反馈信息
pobj.actionType = "regFeedbackSubmit"; opResult = await this.regCenterOrderSve.regFeedbackSubmit(pobj);
opResult = await this.regCenterOrderSve.reqCenterOrderRegApi(pobj);
break; break;
case "regOrderStatus"://reg方案更新 case "regOrderStatus"://reg方案更新
opResult = await this.regCenterOrderSve.regOrderStatus(pobj, pobj.actionBody); opResult = await this.regCenterOrderSve.regOrderStatus(pobj, pobj.actionBody);
......
...@@ -26,28 +26,7 @@ class RegCenterOrderService extends AppServiceBase { ...@@ -26,28 +26,7 @@ class RegCenterOrderService extends AppServiceBase {
var data = JSON.parse(rtn.stdout); var data = JSON.parse(rtn.stdout);
return data; 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---------------------- //-----------接入百度reg-----start--------laolan---2020.12.17----------------------
async regPaySuccess(pobj) { async regPaySuccess(pobj) {
...@@ -262,6 +241,29 @@ async regPaySuccess(pobj) { ...@@ -262,6 +241,29 @@ async regPaySuccess(pobj) {
} }
return result; 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) { async regOrderStatus(pobj) {
var actionBody = pobj.actionBody; 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