diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dd64f2d..ca4e6abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,6 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361 * 重置Rkey获取机制,使用接口分发Rkey ## 新增与调整 -* 新增获取好友列表Api /get_friend_category +* 新增扩展获取好友分类列表 Api /get_friend_with_category 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/common/utils/reboot.ts b/src/common/utils/reboot.ts new file mode 100644 index 00000000..98f7c1a6 --- /dev/null +++ b/src/common/utils/reboot.ts @@ -0,0 +1,15 @@ +import { exit } from "process"; +import { resolve } from "path"; +async function reboot() { + let batScript = resolve(__dirname, './napcat.bat'); + let batUtf8Script = resolve(__dirname, './napcat-utf8.bat'); + let bashScript = resolve(__dirname, './napcat.sh'); + //如果是win系统写出 5s延迟启动 默认batUtf8Script启动 + // 如果是linux系统写出 5s延迟启动 默认bashScript启动 + if (process.platform === 'win32') { + // console.log('正在重启...'); + } else if (process.platform === 'linux') { + //console.log('正在重启...'); + } + exit(0); +} \ No newline at end of file