@ -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;
@ -170,7 +170,7 @@ alter table `tab_giftbag` modify COLUMN `giftbag_version` tinyint(2) COMMENT '
-- ----------------------------
-- 2019-11-20 zyx
CREATE TABLE `tab_idcard` (
CREATE TABLE `tab_idcard_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(80) NOT NULL COMMENT '姓名',
`id_card` varchar(20) NOT NULL COMMENT '身份证号码',