Merge pull request #39 from YiwanGi/patch-1

Update global.php
This commit is contained in:
Whale
2021-06-10 23:39:45 +08:00
committed by GitHub

View File

@@ -9,7 +9,7 @@ $config['host'] = '0.0.0.0';
$config['port'] = 20001; $config['port'] = 20001;
/** 框架开到公网或外部的HTTP访问链接通过 DataProvider::getFrameworkLink() 获取 */ /** 框架开到公网或外部的HTTP访问链接通过 DataProvider::getFrameworkLink() 获取 */
$config['http_reverse_link'] = "http://127.0.0.1:" . $config['port']; $config['http_reverse_link'] = 'http://127.0.0.1:' . $config['port'];
/** 框架是否启动debug模式当debug模式为true时启用热更新需要安装inotify扩展 */ /** 框架是否启动debug模式当debug模式为true时启用热更新需要安装inotify扩展 */
$config['debug_mode'] = false; $config['debug_mode'] = false;
@@ -44,9 +44,9 @@ $config['light_cache'] = [
]; ];
/** 大容量跨进程变量存储2.2.0可用) */ /** 大容量跨进程变量存储2.2.0可用) */
$config["worker_cache"] = [ $config['worker_cache'] = [
"worker" => 0, 'worker' => 0,
"transaction_timeout" => 30000 'transaction_timeout' => 30000
]; ];
/** MySQL数据库连接信息host留空则启动时不创建sql连接池 */ /** MySQL数据库连接信息host留空则启动时不创建sql连接池 */
@@ -74,7 +74,7 @@ $config['redis_config'] = [
]; ];
/** onebot连接约定的token */ /** onebot连接约定的token */
$config["access_token"] = ''; $config['access_token'] = '';
/** HTTP服务器固定请求头的返回 */ /** HTTP服务器固定请求头的返回 */
$config['http_header'] = [ $config['http_header'] = [
@@ -93,7 +93,7 @@ $config['init_atomics'] = [
]; ];
/** 终端日志显示等级0-4 */ /** 终端日志显示等级0-4 */
$config["info_level"] = 2; $config['info_level'] = 2;
/** 上下文接口类 implemented from ContextInterface */ /** 上下文接口类 implemented from ContextInterface */
$config['context_class'] = \ZM\Context\Context::class; $config['context_class'] = \ZM\Context\Context::class;
@@ -101,7 +101,7 @@ $config['context_class'] = \ZM\Context\Context::class;
/** 静态文件访问 */ /** 静态文件访问 */
$config['static_file_server'] = [ $config['static_file_server'] = [
'status' => false, 'status' => false,
'document_root' => realpath(__DIR__ . "/../") . '/resources/html', 'document_root' => realpath(__DIR__ . '/../') . '/resources/html',
'document_index' => [ 'document_index' => [
'index.html' 'index.html'
] ]