mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 移除调试代码
This commit is contained in:
parent
95112d6bdf
commit
bbabb32d13
@ -260,7 +260,7 @@ export class NapCatOnebot11 {
|
|||||||
// }
|
// }
|
||||||
const OldConfig = JSON.parse(JSON.stringify(ob11Config)); //进行深拷贝
|
const OldConfig = JSON.parse(JSON.stringify(ob11Config)); //进行深拷贝
|
||||||
ob11Config.save(NewOb11);//保存新配置
|
ob11Config.save(NewOb11);//保存新配置
|
||||||
|
|
||||||
const isHttpChanged = !isEqual(NewOb11.http.port, OldConfig.http.port);
|
const isHttpChanged = !isEqual(NewOb11.http.port, OldConfig.http.port);
|
||||||
const isHttpEnableChanged = !isEqual(NewOb11.http.enable, OldConfig.http.enable);
|
const isHttpEnableChanged = !isEqual(NewOb11.http.enable, OldConfig.http.enable);
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ export class NapCatOnebot11 {
|
|||||||
//const isEnableHeartBeatChanged = !isEqual(NewOb11.heartInterval, OldConfig.heartInterval);
|
//const isEnableHeartBeatChanged = !isEqual(NewOb11.heartInterval, OldConfig.heartInterval);
|
||||||
|
|
||||||
// http重启逻辑
|
// http重启逻辑
|
||||||
console.log(isHttpEnableChanged, isHttpChanged, NewOb11.http.enable);
|
// console.log(isHttpEnableChanged, isHttpChanged, NewOb11.http.enable);
|
||||||
if ((isHttpEnableChanged || isHttpChanged) && NewOb11.http.enable) {
|
if ((isHttpEnableChanged || isHttpChanged) && NewOb11.http.enable) {
|
||||||
if (OldConfig.http.enable) {
|
if (OldConfig.http.enable) {
|
||||||
ob11HTTPServer.stop();
|
ob11HTTPServer.stop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user