兼容权限报错

This commit is contained in:
liu 2024-07-02 18:27:02 +08:00
parent 645e95a08e
commit c6ce41b2ef
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ class AdminLogic extends BaseLogic
{
$admin = Admin::field([
'id', 'account', 'name', 'disable', 'root',
'multipoint_login', 'avatar',
'multipoint_login', 'avatar','role_id'
])->findOrEmpty($params['id'])->toArray();
if ($action == 'detail') {

View File

@ -225,7 +225,7 @@ class AdminLogic extends BaseLogic
public static function detail($params, $action = 'detail'): array
{
$admin = SystemStoreStaff::field([
'id', 'account', 'staff_name', 'avatar', 'is_admin', 'is_manager', 'store_id'
'id', 'account', 'staff_name', 'avatar', 'is_admin', 'is_manager', 'store_id','role_id'
])->findOrEmpty($params['id'])->toArray();
if ($action == 'detail') {