shish 1 gadu atpakaļ
vecāks
revīzija
c25d9b7da4

+ 2 - 1
app-ghs/controllers/ConsoleController.php

@@ -152,9 +152,10 @@ class ConsoleController extends BaseController
         $notice = [];
         $shop = $this->shop;
         if (!empty($shop)) {
+            //到期前10天提醒
             $deadline = $shop->deadline;
             $currentTime = time();
-            $currentTime = $currentTime + 604800;
+            $currentTime = $currentTime + 864000;
             $deadTime = strtotime($deadline);
             if ($currentTime > $deadTime) {
                 if (time() > $deadTime) {

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

@@ -1064,6 +1064,14 @@ class OrderController extends BaseController
 
         $shop = $this->shop;
 
+        //到期超过5天不支持开单
+        $deadline = $shop->deadline;
+        $deadTime = strtotime($deadline);
+        $myCurrentTime = time() + 432000;
+        if ($myCurrentTime > $deadTime) {
+            util::fail('系统已到期,请续费');
+        }
+
         if (isset($shop->pfLevel) && $shop->pfLevel == 1) {
             //昆明发往全国
             $sendCost = isset($post['sendCost']) && $post['sendCost'] > 0 ? $post['sendCost'] : 0;