fix: 177
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s

This commit is contained in:
手瓜一十雪 committed 2024-08-04 23:26:51 +08:00
1 parent 38894177ee
commit 1c38833998
6 files changed
+16 -15

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
return { valid: false, message: `群${payload.group_id}不存在` };
}
if (payload.user_id && payload.message_type !== 'group') {
const uid = await NTQQUserApi.getUidByUin(payload.user_id);
const uid = await NTQQUserApi.getUidByUin(payload.user_id.toString());
const isBuddy = await NTQQFriendApi.isBuddy(uid!);
// 此处有问题
if (!isBuddy) {