实名处理
This commit is contained in:
@@ -254,6 +254,11 @@ class UserData extends Model
|
||||
//修改手机号
|
||||
public function modify_mobile($new_mobile,$user_id)
|
||||
{
|
||||
//查询新手机号绑定的数量
|
||||
$new_mobile_num = db::name('user')->where(['username' => $new_mobile,'status' => ['neq', 0]])->count();
|
||||
if ($new_mobile_num >= 3) {
|
||||
return ['code' => 0, 'msg' => '该手机号已达绑定上限','data' =>null];
|
||||
}
|
||||
//查询旧手机号
|
||||
$mobile = db::name('user')->where(['id' => $user_id])->value('username');
|
||||
//查询是否实名
|
||||
|
||||
Reference in New Issue
Block a user