From ffbf0c0f37038ef8d73a6c6fe68fdca8f5faa2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Tue, 13 Jan 2026 17:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9Abug=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/UserData.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/api/model/UserData.php b/application/api/model/UserData.php index f83e8a42..1afd5c2c 100644 --- a/application/api/model/UserData.php +++ b/application/api/model/UserData.php @@ -321,7 +321,8 @@ class UserData extends Model return ['code' => 0, 'msg' => '该身份证实名已达上限!','data' =>null]; } $mobile_count = db::name('user')->where(['mobile' => $user_mobile,'status'=>1])->count('id'); - if($mobile_count >= 2){ + $user_auth_count = db::name('user_auth')->where(['mobile' => $user_mobile,'is_real' => 1])->count(); + if($mobile_count >= 2 && $user_auth_count > 0){ return ['code' => 0, 'msg' => '该手机号已绑定多个账号!请勿重复注册!','data' =>null]; } //查询是否已经提交过数据了