shish 1 سال پیش
والد
کامیت
c64952f8e6
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  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';
         $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;
         if ($requestType == 'kd') {
             $where['delStatus'] = 0;