Commit ae1eeb2b authored by Hsinli's avatar Hsinli

add

parent f2840481
Pipeline #13615 passed with stage
in 24 seconds
......@@ -58,7 +58,7 @@ class OrderService extends Service {
if (!id || !created_at || !state || typeof (pay_status) === 'undefined') {
return order;
}
const expire_time = moment(created_at).valueOf() + 24 * 3600;
const expire_time = moment(created_at).valueOf() + 24 * 3600 * 1000;
const now_time = moment().valueOf();
const state_time = moment().format('YYYY-MM-DD HH:mm:ss');
if (expire_time < now_time && (state === '待支付' || state === '已取消') && pay_status === 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