From ca48f2682ca41362c5d9cffcaf4e18641d127000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Mon, 15 Dec 2025 09:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/UserData.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/api/model/UserData.php b/application/api/model/UserData.php index 48f4d293..bc9e83cc 100644 --- a/application/api/model/UserData.php +++ b/application/api/model/UserData.php @@ -310,7 +310,7 @@ class UserData extends Model return ['code' => 0, 'msg' => '该身份证实名已达上限!','data' =>null]; } //查询是否已经提交过数据了 - $is_real = db::name('user_auth')->where(['card_id' => $id_card,'is_real' => 1,'mobile' =>$user_mobile])->find(); + $is_real = db::name('user_auth')->where(['card_id' => $id_card,'mobile' =>$user_mobile])->find(); if($is_real){ return ['code' => 0, 'msg' => '已经审核通过!请勿重复提交!','data' =>null]; } @@ -319,7 +319,8 @@ class UserData extends Model 'mobile' => $user_mobile, 'real_name' => $real_name, 'card_id' => $id_card, - 'is_real' => 3 + 'is_real' => 3, + 'createtime' => time(), ]; db::name('user_auth')->insert($auth); @@ -380,7 +381,7 @@ class UserData extends Model } } //修改状态 - $reslut = db::name('user_auth')->where('id' , $id)->update(['is_real' => 1]); + $reslut = db::name('user_auth')->where('id' , $id)->update(['is_real' => 1,'updatetime'=>time()]); if(!$reslut){ return ['code' => 0, 'msg' => '实名失败','data' =>null]; }