wanggangzero 8 miesięcy temu
rodzic
commit
3b01197575
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 2 1
      Gameserver/App/process/UserProc.php
  2. 1 0
      Gameserver/App/test.php

+ 2 - 1
Gameserver/App/process/UserProc.php

@@ -392,7 +392,8 @@ class UserProc {
         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;
+//        var_dump($n);
+        return $n->cnt <= 0;
     }
 
     /**

+ 1 - 0
Gameserver/App/test.php

@@ -34,3 +34,4 @@ req()->CV = "999.999.999";
 var_dump(explode('-', '1-2'));
 
 var_dump(DebugHelper::get_call_stack(0, 10, true));
+