Browse Source

fixed: 关闭codegen模式,仍有bug

gwang 4 years ago
parent
commit
111c76e0d8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Gameserver/Amfphp/main.php
  2. 1 1
      Gameserver/Amfphp/util/CRedisUtil.php

+ 1 - 1
Gameserver/Amfphp/main.php

@@ -29,7 +29,7 @@ function getRootURL() {
  * 经验证,复杂逻辑(会多次读取配置信息时)可以有效改善性能. -gwang 2020.11.24
  * 经验证,复杂逻辑(会多次读取配置信息时)可以有效改善性能. -gwang 2020.11.24
  * @var boolean (部署环境)是否允许代码生成
  * @var boolean (部署环境)是否允许代码生成
  */
  */
-define('CodeGen_Enabled', true)
+define('CodeGen_Enabled', FALSE)
         and CodeGen_Enabled
         and CodeGen_Enabled
         and define('CodeGen_Folder', ROOTDIR . '/../../CodeGen/');              # 代码生成功能的输出位置
         and define('CodeGen_Folder', ROOTDIR . '/../../CodeGen/');              # 代码生成功能的输出位置
 
 

+ 1 - 1
Gameserver/Amfphp/util/CRedisUtil.php

@@ -44,7 +44,7 @@ class CRedisUtil {
 
 
     private static function debug() {
     private static function debug() {
         if (defined('Redis_Debug') && Redis_Debug) {
         if (defined('Redis_Debug') && Redis_Debug) {
-            DebugHelper::print_stack_trace();
+            DebugHelper::debug(DebugHelper::get_call_stack());
         }
         }
     }
     }