fix: 字段兼容

This commit is contained in:
手瓜一十雪 2024-09-05 15:06:11 +08:00
parent b83c41ad56
commit 21061561ec

View File

@ -677,8 +677,10 @@ export class OneBotMsgApi {
if (ret.result === 0) { if (ret.result === 0) {
resMsg.group_id = parseInt(ret.tmpChatInfo!.groupCode); resMsg.group_id = parseInt(ret.tmpChatInfo!.groupCode);
resMsg.sender.nickname = ret.tmpChatInfo!.fromNick; resMsg.sender.nickname = ret.tmpChatInfo!.fromNick;
resMsg.temp_source = resMsg.group_id;
} else { } else {
resMsg.group_id = 284840486; //兜底数据 resMsg.group_id = 284840486; //兜底数据
resMsg.temp_source = resMsg.group_id;
resMsg.sender.nickname = '临时会话'; resMsg.sender.nickname = '临时会话';
} }
} }