记录身份证修改

master
zhanglingsheng 5 years ago
parent 93a97b6438
commit 7a44327e2d

@ -2126,11 +2126,11 @@ class UserController extends BaseController
} else {
$model = M('idcard_log', 'tab_')->where(['name' => $data['real_name'],'id_card' => $data['idcard']])->find();
if(!empty($model)) {
$arr['num'] = $model['num']+1;
M('idcard_log', 'tab_')->where(['id' => $model['id']])->save($arr);
if($model['status'] == 1) {
$data['age_status'] = is_adult($data['idcard']) ? 2 : 3;
} elseif ($model['status'] == 0) {
$arr['num'] = $model['num']+1;
M('idcard_log', 'tab_')->where(['id' => $model['id']])->save($arr);
$this -> set_message(1069, "fail", "用户数据不匹配");
}
} else {

Loading…
Cancel
Save