Commit 28440dfd by 宋毅

tj

parent 5bf1c25c
...@@ -31,14 +31,21 @@ class UtilsFgbusinesschancService extends AppServiceBase { ...@@ -31,14 +31,21 @@ class UtilsFgbusinesschancService extends AppServiceBase {
if (!Array.isArray(actionBody.businessData)) { if (!Array.isArray(actionBody.businessData)) {
return system.getResult(null, "actionBody.businessData should be Array,100290"); return system.getResult(null, "actionBody.businessData should be Array,100290");
} }
var self = this;
var tmpPobj = {
appInfo: pobj.appInfo,
actionType: "create"
}
var reqUrl = this.centerOrderUrl + "action/fgbusinesschance/springBoard"; var reqUrl = this.centerOrderUrl + "action/fgbusinesschance/springBoard";
let result = actionBody.businessData for (let index = 0; index < actionBody.businessData.length; index++) {
for (let val of result) { const element = actionBody.businessData[index];
pobj.actionBody = val; tmpPobj.actionBody = element;
this.restPostUrl(pobj, reqUrl); var tmpResult = self.restPostUrl(tmpPobj, reqUrl);
this.utilsPushSve.aliBusiness2Fq(pobj, "pushRePurchaseBusiness"); if (tmpResult.status == 0) {
self.utilsPushSve.aliBusiness2Fq(tmpPobj, "pushRePurchaseBusiness");
}
} }
return system.getResultSuccess(); return system.getResultSuccess();
} }
......
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