modified 细节调整

This commit is contained in:
zhaoxiang 2019-06-22 00:39:23 +08:00
parent bd10e38093
commit 01bba5ac20

View File

@ -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'] = [];
}
}
}