Commit 53f2c7c0 by 任晓松

update

parent d24e31c8
...@@ -16,7 +16,7 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -16,7 +16,7 @@ class utilsDeliverSve extends AppServiceBase{
*/ */
async pushTmReDeliver(pobj){ async pushTmReDeliver(pobj){
try{ try{
var verifyResult = await this.verifyParam(pobj); var verifyResult = await this.verifyParam(pobj.actionBody);
if(verifyResult.status !=0){ if(verifyResult.status !=0){
return system.getResultFail(); return system.getResultFail();
} }
...@@ -35,14 +35,13 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -35,14 +35,13 @@ class utilsDeliverSve extends AppServiceBase{
* @returns {Promise<{msg: *, data, status: number}>} * @returns {Promise<{msg: *, data, status: number}>}
*/ */
async verifyParam(actionBody) { async verifyParam(actionBody) {
let verify = system.getResultSuccess();
let deliveryData =""; let deliveryData ="";
let orderNo = ""; let orderNo = "";
let tradeStatus = ''; let tradeStatus = '';
let applicant ={}; let applicant ={};
if(actionBody.delivery_content){ if(actionBody.delivery_content){
deliveryData = actionBody.delivery_content[0].deliveryContent; deliveryData = actionBody.delivery_content;
orderNo = actionBody.delivery_content[0].sourceOrderNo; orderNo = actionBody.order_info.orderNo;
} }
if(actionBody.deliveryData){ if(actionBody.deliveryData){
deliveryData = actionBody.deliveryData; deliveryData = actionBody.deliveryData;
...@@ -89,8 +88,8 @@ class utilsDeliverSve extends AppServiceBase{ ...@@ -89,8 +88,8 @@ class utilsDeliverSve extends AppServiceBase{
askForData:deliveryData.askForData, askForData:deliveryData.askForData,
supData:deliveryData.supData supData:deliveryData.supData
} }
verify.data = postData;
return verify; return system.getResultSuccess(postData);
} }
/** /**
......
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