Commit a9a437b9 by linboxuan

update 2.4

parent ea8805bf
......@@ -38,7 +38,10 @@ class edi extends APIBase {
}
break;
case "soulutionFeebackAliEsp":
opResult = await this.utilsNeedSve.soulutionFeebackAliEsp(pobj,pobj.actionBody);
// opResult = await this.utilsNeedSve.ediNotify(pobj, pobj.actionBody);
// opResult = await this.utilsNeedSve.soulutionFeebackAliEsp(pobj,pobj.actionBody);
pobj.actionType = "receiveFeedback"
opResult = await this.centerorderSve.reqCenterOrderApi(pobj);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
......
......@@ -1039,7 +1039,7 @@ class UtilsNeedService extends AppServiceBase {
actionBody: {
area: needInfoResult.data.city,
city: needInfoResult.data.city,
// regType: pobj.actionBody.regType,//1
regType: "esp.wangwen",//1
orderNo: actionBody.bizId,
orderPrice: Number(pobj.actionBody.orderPrice / 100),
phone: needInfoResult.data.publishMobile,
......@@ -1126,8 +1126,9 @@ class UtilsNeedService extends AppServiceBase {
},
appInfo: pobj.appInfo
}
console.log(deliveryObj)
this.utilsPushSve.aliBusiness2Delivery(deliveryObj, "pushDeliveryOrder");
if (rtn.status == 0 && actionBody.status != 1 && actionBody.status != 2 && rtn.data) {
if (rtn.status == 0 && actionBody.operationType != "" && actionBody.status != 2 && rtn.data) {
var tmpObj = {
actionBody: {
orderNo: rtn.data.orderNo,
......@@ -1136,6 +1137,7 @@ class UtilsNeedService extends AppServiceBase {
},
appInfo: pobj.appInfo
}
console.log(tmpObj)
this.utilsPushSve.aliBusiness2Delivery(tmpObj, "pushDeliveryStatusNotify");
pobj.actionBody.orderNo = rtn.data.orderNo;
if (actionBody.operationType == "ABC_CLOSE_PRODUCE") {
......@@ -1151,15 +1153,20 @@ class UtilsNeedService extends AppServiceBase {
}
/**
* 2020 0928 lin 新增 阿里文网文 服务商侧提供接口2.2 关闭需求通知服务商
* 2020 0928 lin 新增 阿里文网文 服务商侧提供接口2.4 ⽤户⽅案反馈通知服务商
* @param {*} pobj
* @param {*} actionBody
*/
async soulutionFeebackAliEsp(pobj, actionBody) {
// 待定
return system.getResultSuccess();
solutionBizId
note
if(actionBody.operateType == "INVALID") {
var url = settings.centerOrderUrl() + "action/ediApi/springBoard";
var rtn = await this.restPostUrl(pobj, url);
}
return rtn
}
}
module.exports = UtilsNeedService;
......
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