瀏覽代碼

修改判断

solupro 5 年之前
父節點
當前提交
f42af2a89a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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']}");
         }