From 7a44327e2d9ba8912a579fad7b56b00966007bb2 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Thu, 21 Nov 2019 23:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E8=BA=AB=E4=BB=BD=E8=AF=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/UserController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {