mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 细节调整
This commit is contained in:
parent
bd10e38093
commit
01bba5ac20
@ -61,13 +61,15 @@ class User extends Base {
|
||||
|
||||
|
||||
foreach ($listInfo as $key => &$value) {
|
||||
$value['userData']['last_login_ip'] = long2ip($value['userData']['last_login_ip']);
|
||||
$value['userData']['last_login_time'] = date('Y-m-d H:i:s', $value['userData']['last_login_time']);
|
||||
$value['create_ip'] = long2ip($value['create_ip']);
|
||||
if (isset($userGroup[$value['id']])) {
|
||||
$listInfo[$key]['group_id'] = explode(',', $userGroup[$value['id']]['group_id']);
|
||||
} else {
|
||||
$listInfo[$key]['group_id'] = [];
|
||||
if ($value['userData']) {
|
||||
$value['userData']['last_login_ip'] = long2ip($value['userData']['last_login_ip']);
|
||||
$value['userData']['last_login_time'] = date('Y-m-d H:i:s', $value['userData']['last_login_time']);
|
||||
$value['create_ip'] = long2ip($value['create_ip']);
|
||||
if (isset($userGroup[$value['id']])) {
|
||||
$listInfo[$key]['group_id'] = explode(',', $userGroup[$value['id']]['group_id']);
|
||||
} else {
|
||||
$listInfo[$key]['group_id'] = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user