Commit 2c635aae authored by 刘小敏's avatar 刘小敏

被禁用用户微信登录时错误提示

parent fd10d93e
......@@ -143,6 +143,9 @@ class Wechat
if ($user && $user_id > 0) {
error_stop('该微信账号已绑定其他用户');
}
if ($user && $user->status != 'normal') {
error_stop('用户被禁用');
}
// 用户被删除,则重置第三方信息所绑定的用户id
if (!$user) {
$oauthInfo->user_id = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment