绑定更换手机号
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user