|
|
|
@ -2136,7 +2136,7 @@ class UserController extends BaseController
|
|
|
|
|
$data['age_status'] = 3; // 未成年
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$model = M('idcard', 'tab_')->where(['name' => $data['real_name'],'id_card' => $data['idcard']])->find();
|
|
|
|
|
$model = M('idcard_log', 'tab_')->where(['name' => $data['real_name'],'id_card' => $data['idcard']])->find();
|
|
|
|
|
if(!empty($model)) {
|
|
|
|
|
if($model['status'] == 1) {
|
|
|
|
|
$data['age_status'] = is_adult($data['idcard']) ? 2 : 3;
|
|
|
|
@ -2151,7 +2151,7 @@ class UserController extends BaseController
|
|
|
|
|
$arr['status'] = ($re == 1 || $re == 2 ) ? 1 : 0;
|
|
|
|
|
$arr['ip'] = get_client_ip();
|
|
|
|
|
$arr['create_time'] = time();
|
|
|
|
|
M('idcard', 'tab_')->data($arr)->add();
|
|
|
|
|
M('idcard_log', 'tab_')->data($arr)->add();
|
|
|
|
|
switch ($re) {
|
|
|
|
|
|
|
|
|
|
case - 1:
|
|
|
|
|