diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index 1d9d2c6a..9859f727 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -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 {