wanggangzero před 9 měsíci
rodič
revize
e07d58f139
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;