From 78bf3ac5a80e799a3e745759d74d5d22b7d98d86 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 11 Feb 2025 17:51:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E8=8E=B7=E5=8F=96=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E8=AF=A6=E6=83=85=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=97=A8=E5=BA=97=E6=98=AF=E5=90=A6=E8=90=A5=E4=B8=9A=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在获取管理员详情时,添加了门店是否营业(is_operated)的信息 - 通过 SystemStore 模型查询门店状态,并将结果添加到 --- app/store/logic/auth/AdminLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/store/logic/auth/AdminLogic.php b/app/store/logic/auth/AdminLogic.php index 9f8af98bc..367a24847 100644 --- a/app/store/logic/auth/AdminLogic.php +++ b/app/store/logic/auth/AdminLogic.php @@ -23,6 +23,7 @@ use app\common\model\auth\AdminJobs; use app\common\model\auth\AdminRole; use app\common\model\auth\AdminSession; use app\common\cache\AdminTokenCache; +use app\common\model\system_store\SystemStore; use app\common\model\system_store\SystemStoreStaff; use app\common\service\FileService; use support\exception\BusinessException; @@ -229,7 +230,7 @@ class AdminLogic extends BaseLogic if ($action == 'detail') { return $admin; } - + $result['is_operated'] =SystemStore::where('id',$admin['store_id'])->value('is_operated'); $result['user'] = $admin; // 当前管理员角色拥有的菜单 $result['menu'] = MenuLogic::getMenuByAdminId($params['id']);