|
|
|
@ -59,25 +59,44 @@ class UserActionLogController extends AdminController
|
|
|
|
|
|
|
|
|
|
foreach($data as $key=>$value) {
|
|
|
|
|
$remarks = json_decode($value['remarks'],true);
|
|
|
|
|
// dump($data);
|
|
|
|
|
|
|
|
|
|
$action = json_decode($value['action'],true);
|
|
|
|
|
|
|
|
|
|
if ($value['type'] == 3) {
|
|
|
|
|
$data[$key]['action'] = '登录 '.($remarks['server_name']?$remarks['server_name']:'无').'-'.($remarks['role_name']?$remarks['role_name']:'无').'-'.($remarks['role_level']?$remarks['role_level']:'无');
|
|
|
|
|
$data[$key]['action_title'] = '登录 '.($remarks['server_name']?$remarks['server_name']:'无').'-'.($remarks['role_name']?$remarks['role_name']:'无').'-'.($remarks['role_level']?$remarks['role_level']:'无');
|
|
|
|
|
} else if ($value['type'] == 4) {
|
|
|
|
|
$data[$key]['action'] = '退出 '.($remarks['server_name']?$remarks['server_name']:'无').'-'.($remarks['role_name']?$remarks['role_name']:'无').'-'.($remarks['role_level']?$remarks['role_level']:'无');
|
|
|
|
|
$data[$key]['action_title'] = '退出 '.($remarks['server_name']?$remarks['server_name']:'无').'-'.($remarks['role_name']?$remarks['role_name']:'无').'-'.($remarks['role_level']?$remarks['role_level']:'无');
|
|
|
|
|
} else if ($value['type'] == 0) {
|
|
|
|
|
$data[$key]['action'] = '修改密码';
|
|
|
|
|
$data[$key]['action_title'] = '修改密码';
|
|
|
|
|
if ($action['account']) {
|
|
|
|
|
$data[$key]['action_content'] = "-------------------";
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['action_content'] = "旧值:{$action['old_data']}<br>新值:{$action['new_data']}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else if ($value['type'] == 1) {
|
|
|
|
|
$data[$key]['action'] = '修改/绑定手机号';
|
|
|
|
|
$data[$key]['action_title'] = '修改/绑定手机号';
|
|
|
|
|
$data[$key]['action_content'] = "手机号:{$action['phone']}";
|
|
|
|
|
} else if ($value['type'] == 2) {
|
|
|
|
|
$data[$key]['action'] = '修改身份信息';
|
|
|
|
|
$data[$key]['action_title'] = '修改身份信息';
|
|
|
|
|
$data[$key]['action_content'] = $action['old_data']?"旧姓名:{$action['old_data']['real_name']} - 新姓名:{$action['new_data']['real_name']}<br>旧身份证:{$action['old_data']['idcard']} - 新身份证:{$action['new_data']['idcard']}":"";
|
|
|
|
|
} else if ($value['type'] == 5) {
|
|
|
|
|
$data[$key]['action'] = '上报角色 '.($remarks['server_name']?$remarks['server_name']:'无').'-'.($remarks['role_name']?$remarks['role_name']:'无').'-'.($remarks['role_level']?$remarks['role_level']:'无');
|
|
|
|
|
} else if ($value['type'] == 11) {
|
|
|
|
|
$data[$key]['action'] = '修改绑定上级推广员';
|
|
|
|
|
$data[$key]['action_title'] = '上报角色 '.($remarks['server_name']?$remarks['server_name']:'无').'-'.($remarks['role_name']?$remarks['role_name']:'无').'-'.($remarks['role_level']?$remarks['role_level']:'无');
|
|
|
|
|
} else if ($value['type'] == 6) {
|
|
|
|
|
$data[$key]['action_title'] = '点击推广链接下载:'.$value['action'];
|
|
|
|
|
} else if ($value['type'] == 7){
|
|
|
|
|
$data[$key]['action_title'] = '修改角色名';
|
|
|
|
|
$data[$key]['action_content'] = "旧值:{$action['old_data']}<br>新值:{$action['new_data']}";
|
|
|
|
|
} else if ($value['type'] == 8){
|
|
|
|
|
$data[$key]['action_title'] = '解绑手机号';
|
|
|
|
|
$data[$key]['action_content'] = "手机号:{$action['phone']}";
|
|
|
|
|
}
|
|
|
|
|
else if ($value['type'] == 11) {
|
|
|
|
|
$data[$key]['action_title'] = '修改绑定上级推广员';
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['action'] = '未知';
|
|
|
|
|
$data[$key]['action_title'] = '未知';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// die();
|
|
|
|
|
|
|
|
|
|