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]; }