shish 5 rokov pred
rodič
commit
d6b3922f27
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      app-ghs/controllers/BaseController.php

+ 1 - 3
app-ghs/controllers/BaseController.php

@@ -28,7 +28,6 @@ class BaseController extends PublicController
     {
         //定义平台类型 1花店 2供货商
         Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'ghs');
-
         //token验证
         $adminId = jwt::getLoginId();
         if (getenv('YII_ENV', 'local') != 'production') {
@@ -45,9 +44,8 @@ class BaseController extends PublicController
         $this->admin = $admin;
         // 只能供货商访问
         if ($admin->style != AdminClass::STYLE_GHS) {
-            util::fail('您没有权限访问哦');
+            util::fail('您没有权限访问哦');
         }
-
         //后台
         $currentShopId = $admin->currentShopId ?? 0;
         if (empty($currentShopId)) {