Przeglądaj źródła

翻转下bool返回值

王刚 3 lat temu
rodzic
commit
74c6c550f7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Gameserver/Amfphp/process/UserProc.php

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

@@ -436,7 +436,7 @@ class UserProc {
      * @return boolean
      */
     static function checkRoleNameNotExist($roleName) {
-        return false;
+        return true;
         static $sqlFormat = "SELECT count(*) as rows FROM `tab_rolename` WHERE roleName='%s';";
         $sql = sprintf($sqlFormat, $roleName);
         $n = daoInst()->query($sql)->fetch();