Browse Source

fix: 过滤重名

wanggangzero 9 tháng trước cách đây
mục cha
commit
e07d58f139
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Gameserver/App/process/UserProc.php

+ 1 - 1
Gameserver/App/process/UserProc.php

@@ -389,7 +389,7 @@ class UserProc {
      */
     static function checkRoleNameNotExist($roleName) {
 //        return true;                                                            # 不再检查昵称重复
-        static $sqlFormat = "SELECT count(*) as rows FROM `tab_rolename` WHERE roleName='%s';";
+        static $sqlFormat = "SELECT count(*) as cnt FROM `tab_rolename` WHERE roleName='%s';";
         $sql = sprintf($sqlFormat, $roleName);
         $n = daoInst()->query($sql)->fetch();
         return $n->rows <= 0;