Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
9c7299a408
@ -225,7 +225,7 @@ class AdminLogic extends BaseLogic
|
|||||||
{
|
{
|
||||||
$admin = Admin::field([
|
$admin = Admin::field([
|
||||||
'id', 'account', 'name', 'disable', 'root',
|
'id', 'account', 'name', 'disable', 'root',
|
||||||
'multipoint_login', 'avatar',
|
'multipoint_login', 'avatar','role_id'
|
||||||
])->findOrEmpty($params['id'])->toArray();
|
])->findOrEmpty($params['id'])->toArray();
|
||||||
|
|
||||||
if ($action == 'detail') {
|
if ($action == 'detail') {
|
||||||
|
@ -225,7 +225,7 @@ class AdminLogic extends BaseLogic
|
|||||||
public static function detail($params, $action = 'detail'): array
|
public static function detail($params, $action = 'detail'): array
|
||||||
{
|
{
|
||||||
$admin = SystemStoreStaff::field([
|
$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();
|
])->findOrEmpty($params['id'])->toArray();
|
||||||
|
|
||||||
if ($action == 'detail') {
|
if ($action == 'detail') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user