fix: music sign

This commit is contained in:
手瓜一十雪 2024-08-26 17:23:39 +08:00
parent 69380c9c73
commit 86ae6dd332

View File

@ -622,7 +622,10 @@ export class OneBotMsgApi {
} }
try { try {
const musicJson = await RequestUtil.HttpGetJson<any>(signUrl, 'POST', postData); const musicJson = await RequestUtil.HttpGetJson<any>(signUrl, 'POST', postData);
return this.ob11ToRawConverters.json(musicJson, context); return this.ob11ToRawConverters.json({
data: { data: musicJson },
type: OB11MessageDataType.json
}, context);
} catch (e) { } catch (e) {
this.core.context.logger.logError('生成音乐消息失败', e); this.core.context.logger.logError('生成音乐消息失败', e);
} }