Commit 42d0a17c authored by 李尚科's avatar 李尚科

fix

parent 6a6c7396
Pipeline #14160 passed with stage
in 30 seconds
...@@ -146,11 +146,11 @@ class OrderService extends Service { ...@@ -146,11 +146,11 @@ class OrderService extends Service {
const expire_time = moment(state_time).valueOf() + worth_time * 86400 * 1000; const expire_time = moment(state_time).valueOf() + worth_time * 86400 * 1000;
const now_time = moment().valueOf(); const now_time = moment().valueOf();
const state_array = ['待支付']; const state_array = ['待支付'];
if (state_array.includes(state) && expire_time < now_time) {//还在规定的有效期内 高价值报告 if (!state_array.includes(state) || expire_time > now_time) {//还在规定的有效期内 高价值报告
return 1; return 0;
} }
return 0; return 1;
} }
/** /**
......
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