Explorar o código

fix: 过滤重名

wanggangzero hai 9 meses
pai
achega
e07d58f139
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;