浏览代码

fix: 过滤重名

wanggangzero 9 月之前
父节点
当前提交
e07d58f139
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;