首页统计

This commit is contained in:
2024-11-05 13:53:03 +08:00
parent d58f5caf4c
commit 972bf2496f

View File

@@ -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('门店信息获取失败');