shish 1 rok temu
rodzic
commit
c64952f8e6
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      app-ghs/controllers/ItemController.php

+ 10 - 0
app-ghs/controllers/ItemController.php

@@ -84,6 +84,16 @@ class ItemController extends BaseController
         $requestType = $get['requestType'] ?? 'kd';
         $requestType = $get['requestType'] ?? 'kd';
         $classId = $get['classId'] ?? 0;
         $classId = $get['classId'] ?? 0;
 
 
+        if (getenv('YII_ENV') == 'production') {
+            if (in_array($this->mainId, ['50', '7704'])) {
+                util::fail('已到期,请续费');
+            }
+        } else {
+            if (in_array($this->mainId, ['644'])) {
+                util::fail('已到期,请续费');
+            }
+        }
+
         $where['mainId'] = $this->mainId;
         $where['mainId'] = $this->mainId;
         if ($requestType == 'kd') {
         if ($requestType == 'kd') {
             $where['delStatus'] = 0;
             $where['delStatus'] = 0;