jerry 6155236d3c update to v2.4.0 (build 399)
add CheckConfigCommand.php
add config update record docs
adjust swoole version to 4.5.0
fix stop and reload bugs
add $_running_annotation
add remote terminal
update global config
add timer tick exception handler
add zm_xxx global functions
add isAtMe(), splitCommand(), matchCommand() function for MessageUtil
add workerAction(), sendActionToWorker(), resumeAllWorkerCoroutines() functions for ProcessManager
optimize CQCommand match function
add custom TerminalCommand annotation
add TuringAPI
add getReloadableFiles() function for ZMUtil
2021-03-24 23:34:46 +08:00

909 B
Raw Blame History

配置文件变更记录

这里将会记录各个主版本的框架升级后,涉及 global.php 的更新日志,你可以根据这里描述的内容与你的旧配置文件进行合并。

v2.4.0 (build 400)

  • 调整 $config['modules']['onebot'] 配置项到 $config['onebot'],旧版本的此段会向下兼容,建议更新,
  • 新增 $config['remote_terminal'] 远程终端的配置项,新增此段即可。

更新部分:

/** 机器人解析模块关闭后无法使用如CQCommand等注解(上面的modules即将废弃) */
$config['onebot'] = [
    'status' => true,
    'single_bot_mode' => false,
    'message_level' => 99999
];

/** 一个远程简易终端使用nc直接连接即可但是不建议开放host为0.0.0.0(远程连接) */
$config['remote_terminal'] = [
    'status' => false,
    'host' => '127.0.0.1',
    'port' => 20002,
    'token' => ''
];