diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index e1c0407f..a6494276 100755 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1696,7 +1696,7 @@ class Auth extends BaseController return app('json')->fail('授权已过期,请重新登录'); } $user = $repository->wechatUserIdBytUser($auth['id']); - if (!empty($user['account'])) { + if (!empty($user['account']) && !empty($user['phone'])) { return app('json')->fail('已绑定手机号'); } $targetUser = $repository->accountByUser($data['phone']);