Commit 19b8c3f9 authored by 李尚科's avatar 李尚科

fixx

parent a7a3ee2a
......@@ -210,7 +210,7 @@ class OrderService extends Service {
const price = await this.updateOrderPrice(order);
const type = order.type;
const countdown = moment(order.order_time).format('X') - moment(new Date()).format('X') + 86402;
const countdown = moment(order.order_time).format('X') - moment(new Date()).format('X') + 86400;
const ret = {
price,
original_price: order.price,
......@@ -296,7 +296,7 @@ class OrderService extends Service {
if (order && order.pay_status === 1) {
ctx.failed('订单已支付无需重复支付');
}
const expire_time = moment(order.order_time).valueOf() + 24 * 3600 * 1000;
const expire_time = moment(order.order_time).valueOf() + 24 * 3600 * 1000 + 10 * 1000;
const now_time = moment().valueOf();
if (expire_time <= now_time) {
ctx.failed('order_failure');//订单失效,前端会取这个判断跳转
......
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