|
|
@@ -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)) {
|