shish 2 anni fa
parent
commit
65d50f6108
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      app-ghs/controllers/OrderController.php

+ 3 - 0
app-ghs/controllers/OrderController.php

@@ -2026,6 +2026,9 @@ class OrderController extends BaseController
         if (empty($cg)) {
             util::fail('没有找到订单信息');
         }
+        if (strtotime($new) > time()) {
+            util::fail('不能使用未来的时间');
+        }
         $order->payTime = $new;
         $order->save();
         $cg->payTime = $new;