mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
Merge pull request #147 from serfend/default-config
fix[config]support overwrite by user #145
This commit is contained in:
@@ -385,7 +385,7 @@ export class NapCatOnebot11 {
|
||||
// throw new Error('Invalid configuration object');
|
||||
// }
|
||||
const OldConfig = JSON.parse(JSON.stringify(ob11Config)); //进行深拷贝
|
||||
ob11Config.save(NewOb11);//保存新配置
|
||||
ob11Config.save(NewOb11, true);//保存新配置
|
||||
|
||||
const isHttpChanged = !isEqual(NewOb11.http.enable, OldConfig.http.enable) ||
|
||||
!isEqual(NewOb11.http.host, OldConfig.http.host) ||
|
||||
@@ -525,7 +525,7 @@ export class NapCatOnebot11 {
|
||||
groupRequestEvent.flag = flag;
|
||||
postOB11Event(groupRequestEvent);
|
||||
} else if (notify.type == GroupNotifyTypes.INVITE_ME) {
|
||||
logDebug('收到邀请我加群通知');
|
||||
logDebug(`收到邀请我加群通知:${notify}`);
|
||||
const groupInviteEvent = new OB11GroupRequestEvent();
|
||||
groupInviteEvent.group_id = parseInt(notify.group.groupCode);
|
||||
const user_id = (await NTQQUserApi.getUinByUid(notify.user2.uid)) || '';
|
||||
|
||||
Reference in New Issue
Block a user