实名处理多次提交
This commit is contained in:
@@ -287,6 +287,11 @@ class UserData extends Model
|
|||||||
if(empty($user_mobile)){
|
if(empty($user_mobile)){
|
||||||
return ['code' => 0, 'msg' => '请先绑定手机号','data' =>null];
|
return ['code' => 0, 'msg' => '请先绑定手机号','data' =>null];
|
||||||
}
|
}
|
||||||
|
//查询是否已经提交过数据了
|
||||||
|
$is_real = db::name('user_auth')->where(['card_id' => $id_card])->find();
|
||||||
|
if($is_real){
|
||||||
|
return ['code' => 0, 'msg' => '请勿重复提交','data' =>null];
|
||||||
|
}
|
||||||
$auth = [
|
$auth = [
|
||||||
'mobile' => $user_mobile,
|
'mobile' => $user_mobile,
|
||||||
'real_name' => $real_name,
|
'real_name' => $real_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user