实名处理多次提交

This commit is contained in:
2025-09-17 11:15:35 +08:00
parent 60ce110dd6
commit c95f8cb091

View File

@@ -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,