Commit 585780c4 authored by Hsinli's avatar Hsinli

Merge branch 'master' of t-git.51gjj.com:fangbin/51business

parents 07e51d4b a7a3ee2a
Pipeline #14352 passed with stage
in 6 seconds
......@@ -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') + 86400;
const countdown = moment(order.order_time).format('X') - moment(new Date()).format('X') + 86402;
const ret = {
price,
original_price: order.price,
......@@ -298,7 +298,7 @@ class OrderService extends Service {
}
const expire_time = moment(order.order_time).valueOf() + 24 * 3600 * 1000;
const now_time = moment().valueOf();
if (expire_time < now_time) {
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