Commit 1b38b17d authored by 李尚科's avatar 李尚科

fixx

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