记录身份证修改

master
zhanglingsheng 5 years ago
parent 40af9b0e51
commit ca5e81bb2c

@ -2129,17 +2129,22 @@ class UserController extends BaseController
if($model['status'] == 1) { if($model['status'] == 1) {
$data['age_status'] = is_adult($data['idcard']) ? 2 : 3; $data['age_status'] = is_adult($data['idcard']) ? 2 : 3;
} elseif ($model['status'] == 0) { } elseif ($model['status'] == 0) {
$arr['num'] = $model['num']+1;
M('idcard_log', 'tab_')->where(['id' => $model['id']])->save($arr);
$this -> set_message(1069, "fail", "用户数据不匹配"); $this -> set_message(1069, "fail", "用户数据不匹配");
} }
} else { } else {
$re = age_verify($data['idcard'], $data['real_name']); $re = age_verify($data['idcard'], $data['real_name']);
$arr['name'] = $data['real_name']; if($re != -1)
$arr['id_card'] = $data['idcard']; {
$arr['user_id'] = $user['user_id']; $arr['name'] = $data['real_name'];
$arr['status'] = ($re == 1 || $re == 2 ) ? 1 : 0; $arr['id_card'] = $data['idcard'];
$arr['ip'] = get_client_ip(); $arr['user_id'] = $user['user_id'];
$arr['create_time'] = time(); $arr['status'] = ($re == 1 || $re == 2 ) ? 1 : 0;
M('idcard_log', 'tab_')->data($arr)->add(); $arr['ip'] = get_client_ip();
$arr['create_time'] = time();
M('idcard_log', 'tab_')->data($arr)->add();
}
switch ($re) { switch ($re) {
case - 1: case - 1:

Loading…
Cancel
Save