Explorar o código

打开通讯日志,关闭长key.

王刚 hai 1 ano
pai
achega
7a301b572d

+ 3 - 3
Gameserver/App/Services/AppServer.php

@@ -41,7 +41,7 @@ class AppServer {
      */
     private static function BeforeProc() {
         my_Assert(!config::Inst()->isBaned(req()->uid), ErrCode::err_server_updating); # 检查封号
-        if (self::isUpdating()) {                                        # 检查是否处于更新阶段,暂停对玩家请求的响应。
+        if (self::isUpdating()) {                                               # 检查是否处于更新阶段,暂停对玩家请求的响应。
             if (req()->uid && !config::Inst()->isTester(req()->uid)) {                               # 排除测试号
                 return ErrCode::err_server_updating;
             }
@@ -69,8 +69,8 @@ class AppServer {
         }
         $resp->AfterProc();
 
-        //self::LogCmdMongo($resp);                                               # 向MongoDB写入操作日志
-        // CLog::flush();                                                          # flush日志
+        self::LogCmdMongo($resp);                                               # 向MongoDB写入操作日志
+        CLog::flush();                                                          # flush日志
         return true;
     }
 

+ 1 - 1
Gameserver/App/base/MemKey_User.php

@@ -22,7 +22,7 @@ class MemKey_User {
     private static function bUseShort() {
 //        return true;  # 全部启用
         return match (PLAT) {
-            Enum_Plat::dev_gwang => false, # dev时不使用
+//            Enum_Plat::dev_gwang => false, # dev时不使用
             default => true,
         };
     }