Browse Source

过期判断

shish 4 năm trước cách đây
mục cha
commit
3bf3959bd8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -245,7 +245,7 @@ class PurchaseController extends BaseController
         $deadline = $order->deadline;
         $current = time();
 
-        if (($current + 60) > strtotime($deadline)) {
+        if (($current + 50) > strtotime($deadline)) {
             util::fail('订单已失效,请重新下单');
         }