兼容权限报错
This commit is contained in:
parent
645e95a08e
commit
c6ce41b2ef
@ -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') {
|
||||
|
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user