From 86ae6dd3320029bebb13ac3b1d58dd1ddb204f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 26 Aug 2024 17:23:39 +0800 Subject: [PATCH] fix: music sign --- src/onebot/api/msg.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index 230002d6..0f6d745e 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -622,7 +622,10 @@ export class OneBotMsgApi { } try { const musicJson = await RequestUtil.HttpGetJson(signUrl, 'POST', postData); - return this.ob11ToRawConverters.json(musicJson, context); + return this.ob11ToRawConverters.json({ + data: { data: musicJson }, + type: OB11MessageDataType.json + }, context); } catch (e) { this.core.context.logger.logError('生成音乐消息失败', e); }