Commit 6a6c7396 authored by 李尚科's avatar 李尚科

fix

parent 6d2e459a
Pipeline #14158 passed with stage
in 32 seconds
...@@ -145,11 +145,12 @@ class OrderService extends Service { ...@@ -145,11 +145,12 @@ class OrderService extends Service {
const worth_time = type === 1 ? 15 : 30; const worth_time = type === 1 ? 15 : 30;
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();
if (pay_status === 1 && state === '已支付' && expire_time > now_time) {//还在规定的有效期内 高价值报告 const state_array = ['待支付'];
return 0; if (state_array.includes(state) && expire_time < now_time) {//还在规定的有效期内 高价值报告
return 1;
} }
return 1; return 0;
} }
/** /**
......
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