fix: 增加@所有人 完善mac发送清理与端口回退

This commit is contained in:
Wxw-Gu committed 2026-11-12 16:00:45 +08:00
1 parent c50f8861a4
commit aca103cb96
9 files changed
+737 -173

No files matched your search

+17
View File
@@ -225,6 +225,23 @@ describe('POST /api/v1/wechat/send', () => {
expect(invalid.status).toBe(400)
})
it('透传群聊 @ 全体目标', async () => {
const response = await post({
to: 'fixture-room@chatroom',
isGroup: true,
type: 'text',
text: '@所有人 请查看这条测试消息',
at: { 'notify@all': '所有人' }
})
expect(response.status).toBe(200)
expect(lastAction().content).toEqual({
type: 'text',
text: '@所有人 请查看这条测试消息',
at: { 'notify@all': '所有人' }
})
})
it('拒绝格式错误的群聊 @ 成员映射', async () => {
const response = await post({
to: 'fixture-room@chatroom',