绑定更换手机号

This commit is contained in:
2025-08-15 14:11:31 +08:00
parent af15c00456
commit 341c93da80
2 changed files with 5 additions and 5 deletions

View File

@@ -26,8 +26,8 @@ class Sms extends Model
if($type == 1 || $type == 2){
//查询手机号绑定的数量
$map = [];
$map[] = ['mobile', '=', $mobile];
$map[] = ['status', '=', 1];
$map['mobile'] = $mobile;
$map['status'] = 1;
$user_info = db::name('user')->where($map)->count();
if($user_info >= 4){
return ['code' => 0, 'msg' => '该手机号已达绑定上线','data' =>null];