refactor(store): 优化管理员信息返回格式
- 将 is_operated 字段直接赋值给 admin 数组,而不是 result 数组 - 更新 result 数组结构,简化返回数据格式
This commit is contained in:
parent
78bf3ac5a8
commit
906fd620a9
@ -230,7 +230,7 @@ class AdminLogic extends BaseLogic
|
|||||||
if ($action == 'detail') {
|
if ($action == 'detail') {
|
||||||
return $admin;
|
return $admin;
|
||||||
}
|
}
|
||||||
$result['is_operated'] =SystemStore::where('id',$admin['store_id'])->value('is_operated');
|
$admin['is_operated'] =SystemStore::where('id',$admin['store_id'])->value('is_operated');
|
||||||
$result['user'] = $admin;
|
$result['user'] = $admin;
|
||||||
// 当前管理员角色拥有的菜单
|
// 当前管理员角色拥有的菜单
|
||||||
$result['menu'] = MenuLogic::getMenuByAdminId($params['id']);
|
$result['menu'] = MenuLogic::getMenuByAdminId($params['id']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user