首页统计
This commit is contained in:
@@ -295,6 +295,9 @@ class HomeController extends BaseAdminController
|
||||
$admin = \Yii::$app->user->identity;
|
||||
|
||||
switch ($admin->role) {
|
||||
case UserRoleEnum::SUPER_ADMIN:
|
||||
// 管理员
|
||||
break;
|
||||
case UserRoleEnum::STORE_ADMIN:
|
||||
// 门店
|
||||
if (empty($admin->store_id)) throw new Exception('门店信息获取失败');
|
||||
|
||||
Reference in New Issue
Block a user