REQ-3201: 引入业务状态

This commit is contained in:
yanglin 2024-12-13 09:55:32 +08:00
parent faf8e9b69a
commit 35e939aa20

View File

@ -227,7 +227,9 @@ public class CardManager {
for (Card card : cardDao.reloadCards(cards)) {
UpdateMessageRequest.Update update = new UpdateMessageRequest.Update();
update.setBizMessageId(card.getBizMessageId());
update.setMsgTemplateContent(JSON.toJSONString(card.getCardContent()));
Object cardContent = card.getCardContent();
update.setMsgTemplateContent(cardContent instanceof String ?
(String) cardContent : JSON.toJSONString(cardContent));
imRequest.addUpdate(update);
}
try {