Commit a1c75636 by 王昆

dd

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