From 82e737af422ddf3638f5f7df71dd3aa68c406dea Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Thu, 21 Nov 2019 21:34:21 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/UserController.class.php | 2 +- Data/update.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index b8288811..c4283e40 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -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; diff --git a/Data/update.sql b/Data/update.sql index 8d30cc27..ba40deeb 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -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 '身份证号码', From 123bed164c5a42c4b7e14b113ed36de911e72ebf Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Thu, 21 Nov 2019 21:34:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/UserController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index c4283e40..0979b12e 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -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: From fc9fdfc419da2608b59864de921e0532d4d99e51 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Thu, 21 Nov 2019 21:36:55 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/BaseController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/BaseController.class.php b/Application/Sdk/Controller/BaseController.class.php index f6aeb6ce..e1aa0318 100644 --- a/Application/Sdk/Controller/BaseController.class.php +++ b/Application/Sdk/Controller/BaseController.class.php @@ -18,7 +18,7 @@ class BaseController extends RestController{ protected $noToken = [ 'user_login', 'send_sms', 'verify_sms', 'forget_password', 'init_sdk', 'device_record', 'force_update', 'thirdparty', 'get_customer_question', - 'get_down_time' + 'get_down_time', 'customer_contact' ]; // 不需要验证TOKEN的接口 protected $noNeedToken = [