mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 热重载
This commit is contained in:
parent
6980a9f3fc
commit
36cdca5a3e
@ -259,9 +259,6 @@ export class NapCatOnebot11 {
|
|||||||
// throw new Error('Invalid configuration object');
|
// throw new Error('Invalid configuration object');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// 先设置
|
|
||||||
ob11Config.save(NewOb11);
|
|
||||||
|
|
||||||
const isHttpChanged = !isEqual(NewOb11.http.port, ob11Config.http.port) && NewOb11.http.enable;
|
const isHttpChanged = !isEqual(NewOb11.http.port, ob11Config.http.port) && NewOb11.http.enable;
|
||||||
const isHttpEnableChanged = !isEqual(NewOb11.http.enable, ob11Config.http.enable);
|
const isHttpEnableChanged = !isEqual(NewOb11.http.enable, ob11Config.http.enable);
|
||||||
|
|
||||||
@ -317,6 +314,8 @@ export class NapCatOnebot11 {
|
|||||||
ob11ReverseWebsockets.stop();
|
ob11ReverseWebsockets.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ob11Config.save(NewOb11);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError('热重载配置失败', e);
|
logError('热重载配置失败', e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user