mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
namespace think\controller;
|
||||
|
||||
use think\App;
|
||||
|
||||
/**
|
||||
* ThinkPHP Hprose控制器类
|
||||
*/
|
||||
@@ -45,7 +47,7 @@ abstract class Hprose
|
||||
$methods = array_diff($methods, array('__construct', '__call', '_initialize'));
|
||||
}
|
||||
$server->addMethods($methods, $this);
|
||||
if (APP_DEBUG || $this->debug) {
|
||||
if (App::$debug || $this->debug) {
|
||||
$server->setDebugEnabled(true);
|
||||
}
|
||||
// Hprose设置
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace think\controller;
|
||||
|
||||
use think\App;
|
||||
/**
|
||||
* ThinkPHP RPC控制器类
|
||||
*/
|
||||
@@ -43,7 +44,7 @@ abstract class Rpc
|
||||
}
|
||||
$server->add($methods, $this);
|
||||
|
||||
if (APP_DEBUG || $this->debug) {
|
||||
if (App::$debug || $this->debug) {
|
||||
$server->setDebugMode(true);
|
||||
}
|
||||
$server->setEnableGZIP(true);
|
||||
|
||||
Reference in New Issue
Block a user