Parcourir la source

翻转下bool返回值

王刚 il y a 3 ans
Parent
commit
74c6c550f7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();