Commit 5ce3ae83 by 宋毅

tj

parent 70bdf581
...@@ -832,7 +832,7 @@ class OrderInfoService extends ServiceBase { ...@@ -832,7 +832,7 @@ class OrderInfoService extends ServiceBase {
} }
//退款 //退款
async refundOrder(pobj) { async refundOrder(req,pobj) {
if (!pobj.orderNum) { if (!pobj.orderNum) {
return system.getResultFail(-101, "orderNum is empty"); return system.getResultFail(-101, "orderNum is empty");
} }
...@@ -844,6 +844,9 @@ class OrderInfoService extends ServiceBase { ...@@ -844,6 +844,9 @@ class OrderInfoService extends ServiceBase {
if (!orderProduct) { if (!orderProduct) {
return system.getResultFail(-101, "orderProduct is empty"); return system.getResultFail(-101, "orderProduct is empty");
} }
if(orderProduct.status == 320) {
return system.getResultSuccess();
}
var productType = "p_business_registration"; var productType = "p_business_registration";
if (orderProduct.dataValues.product_type.indexOf("/qcfw/") > -1) { if (orderProduct.dataValues.product_type.indexOf("/qcfw/") > -1) {
productType = "p_vat"; productType = "p_vat";
...@@ -867,7 +870,7 @@ class OrderInfoService extends ServiceBase { ...@@ -867,7 +870,7 @@ class OrderInfoService extends ServiceBase {
} }
} }
} }
var r = await this.execPostByTimeOut(o, "http://msgqueue.sandbox.com"); var r = await this.execPostByTimeOut(req,o, "http://msgqueue.sandbox.com");
if (r.status < 1) { if (r.status < 1) {
return system.getResultFail(-102, "Post error"); return system.getResultFail(-102, "Post error");
} }
......
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