Commit a1c75636 by 王昆

dd

parent 00548711
...@@ -34,23 +34,26 @@ class OrderService extends ServiceBase { ...@@ -34,23 +34,26 @@ class OrderService extends ServiceBase {
} }
async handleStatus(params) { async handleStatus(params) {
let rs = await this.callms("order", "handleStatus", params); // let rs = await this.callms("order", "handleStatus", params);
if(rs && rs.status === 0) { // if(rs && rs.status === 0) {
this.pushOrderInfo(params); // this.pushOrderInfo(params);
} // }
return rs; // return rs;
await this.pushOrderInfo(params);
return system.getResult("ok");
} }
async pushOrderInfo(params) { async pushOrderInfo(params) {
let order = await this.callms("order", "orderInfo", params) || {};
order = order.data;
if (!order) {
return;
}
if(!order.saas_deliver_api) {
return;
}
if(params.status == 1190) { if(params.status == 1190) {
let order = await this.callms("order", "orderInfo", params) || {};
order = order.data;
if (!order) {
return;
}
if(!order.saas_deliver_api) {
return;
}
let data = { let data = {
source_no: order.source_no, source_no: order.source_no,
status: order.status, status: order.status,
...@@ -71,11 +74,13 @@ class OrderService extends ServiceBase { ...@@ -71,11 +74,13 @@ class OrderService extends ServiceBase {
if(!obusinessmen.saas_deliver_api) { if(!obusinessmen.saas_deliver_api) {
return; return;
} }
axios({ obusinessmen.status = "2000000";
let a = await axios({
method: 'post', method: 'post',
url: obusinessmen.saas_deliver_api, url: obusinessmen.saas_deliver_api,
data: obusinessmen data: obusinessmen
}); });
console.log(a)
} }
} }
......
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