2 Commits 7899a00e2c ... f30f439930

Author SHA1 Message Date
  solupro f30f439930 Merge remote-tracking branch 'origin/master' 5 years ago
  solupro f42af2a89a 修改判断 5 years ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      protected/models/User.php

+ 1 - 1
protected/models/User.php

@@ -164,7 +164,7 @@ class User extends Singleton {
         $objUserBindInfo = new TableHelper('user_bind_info', 'dw_chat');
 
         $user = $objUser->getRow(['user_id' => $user_id]);
-        if ($user['first_type'] == $type && $user['first_account'] != $account) {
+        if ($user['first_type'] == $type && strtolower($user['first_account']) != strtolower($account)) {
             Response::error(CODE_NORMAL_ERROR, "this account {$type} must be bind {$user['first_account']}");
         }