mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
🐛 fix some unexpected bug. Cause by reload command.
This commit is contained in:
parent
fca6a83cff
commit
7b8a1f40ee
@ -59,8 +59,6 @@ class Admin extends ModBase
|
||||
switch ($it[0]) {
|
||||
case "reload": //管理员重载代码
|
||||
$this->reply("正在重新启动...");
|
||||
if (file_get_contents("/home/ubuntu/CrazyBotFramework/src/Framework.php") != Cache::get("res_code"))
|
||||
$this->reply("检测到改变了Framework文件的内容!如需完全重载,请重启完整进程!");
|
||||
CQUtil::reload();
|
||||
return true;
|
||||
case "stop": //管理员停止server
|
||||
|
||||
@ -25,6 +25,7 @@ class CQUtil
|
||||
public static function loadAllFiles() {
|
||||
Cache::set("info_level", settings()["info_level"]);
|
||||
Console::debug("loading configs...");
|
||||
self::initEmptyCaches();
|
||||
Cache::set("mods", self::getMods());//加载的模块列表
|
||||
Cache::set("group_list", DP::getJsonData("group_list.json"));//获取群组列表
|
||||
Cache::set("admin_group", settings()["admin_group"]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user