diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b8a3f2..813fae55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,5 +12,6 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361 ## 新增与调整 * 新增设置群公告 Api: /_send_group_notice * 新增重启实现 包括重启快速登录/普通重启 +* 支持WebUi热重载配置 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index db49751d..0a9b2e99 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -130,12 +130,20 @@ export class NapCatOnebot11 { groupListener.onGroupNotifiesUpdated = async (doubt, notifies) => { for (let i = 0; i < notifies.length; i++) { if (notifies[i].user1.uid && notifies[i].user1.uid.startsWith('u_')) { - let UserInfo_User1 = await NTQQUserApi.getUserDetailInfo(notifies[i].user1.uid); - uid2UinMap[UserInfo_User1.uid] = UserInfo_User1.uin; + try { + const UserInfo_User1 = await NTQQUserApi.getUserDetailInfo(notifies[i].user1.uid); + uid2UinMap[UserInfo_User1.uid] = UserInfo_User1.uin; + }catch (e) { + logDebug('获取群通知相关信息失败' + e, notifies[i].user1.uid); + } } if (notifies[i].user2.uid && notifies[i].user2.uid.startsWith('u_')) { - let UserInfo_User2 = await NTQQUserApi.getUserDetailInfo(notifies[i].user2.uid); - uid2UinMap[UserInfo_User2.uid] = UserInfo_User2.uin; + try { + const UserInfo_User2 = await NTQQUserApi.getUserDetailInfo(notifies[i].user2.uid); + uid2UinMap[UserInfo_User2.uid] = UserInfo_User2.uin; + }catch (e) { + logDebug('获取群通知相关信息失败' + e, notifies[i].user2.uid); + } } } //console.log('ob11 onGroupNotifiesUpdated', notifies[0]);