mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正
This commit is contained in:
@@ -56,7 +56,6 @@ return [
|
|||||||
'show_error_msg' => false,
|
'show_error_msg' => false,
|
||||||
//默认输出类型
|
//默认输出类型
|
||||||
'default_return_type' => 'html',
|
'default_return_type' => 'html',
|
||||||
'common_module' => '',
|
|
||||||
|
|
||||||
'log' => [
|
'log' => [
|
||||||
'type' => 'File',
|
'type' => 'File',
|
||||||
@@ -110,16 +109,16 @@ return [
|
|||||||
'slave_no' => '',
|
'slave_no' => '',
|
||||||
],
|
],
|
||||||
/* SocketLog 调试 */
|
/* SocketLog 调试 */
|
||||||
'slog'=> [
|
'slog' => [
|
||||||
'enable'=>false, //是否记录日志的开关
|
'enable' => false, //是否记录日志的开关
|
||||||
'host'=>'localhost',
|
'host' => 'localhost',
|
||||||
//是否显示利于优化的参数,如果允许时间,消耗内存等
|
//是否显示利于优化的参数,如果允许时间,消耗内存等
|
||||||
'optimize'=>true,
|
'optimize' => true,
|
||||||
'show_included_files'=>true,
|
'show_included_files' => true,
|
||||||
'error_handler'=>true,
|
'error_handler' => true,
|
||||||
//日志强制记录到配置的client_id
|
//日志强制记录到配置的client_id
|
||||||
'force_client_id'=>'',
|
'force_client_id' => '',
|
||||||
//限制允许读取日志的client_id
|
//限制允许读取日志的client_id
|
||||||
'allow_client_ids'=>array()
|
'allow_client_ids' => array(),
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ class App
|
|||||||
Session::init($config['session']);
|
Session::init($config['session']);
|
||||||
}
|
}
|
||||||
//判断,如果启动SocketLog调试, 进行SocketLog配置
|
//判断,如果启动SocketLog调试, 进行SocketLog配置
|
||||||
if($config['slog']['enable']) {
|
if ($config['slog']['enable']) {
|
||||||
slog::config($config['slog']);
|
\org\Slog::config($config['slog']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 应用URL调度
|
// 应用URL调度
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ use think\Debug;
|
|||||||
use think\Exception;
|
use think\Exception;
|
||||||
use think\Lang;
|
use think\Lang;
|
||||||
use think\Log;
|
use think\Log;
|
||||||
use think\Slog;
|
|
||||||
|
|
||||||
abstract class Driver
|
abstract class Driver
|
||||||
{
|
{
|
||||||
@@ -743,7 +742,7 @@ abstract class Driver
|
|||||||
protected function parseOrder($order)
|
protected function parseOrder($order)
|
||||||
{
|
{
|
||||||
$array = [];
|
$array = [];
|
||||||
if(is_array($order)) {
|
if (is_array($order)) {
|
||||||
foreach ($order as $key => $val) {
|
foreach ($order as $key => $val) {
|
||||||
if (is_numeric($key)) {
|
if (is_numeric($key)) {
|
||||||
if (false === strpos($val, '(')) {
|
if (false === strpos($val, '(')) {
|
||||||
@@ -1163,9 +1162,9 @@ abstract class Driver
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$slog_config=Config::get('slog');
|
$slog_config = Config::get('slog');
|
||||||
if($slog_config['enable'] && $start) {
|
if ($slog_config['enable'] && $start) {
|
||||||
slog::sql($this->queryStr,$this->_linkID);
|
\org\Slog::sql($this->queryStr, $this->_linkID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user