feat(emergency): 推送消息增加封面图字段messageImageUrl,去掉businessId

This commit is contained in:
2026-07-07 14:24:56 +08:00
parent 66b77cc231
commit e16c0c2536
2 changed files with 5 additions and 1 deletions
@@ -24,4 +24,8 @@ public class SendIm {
* 业务标识,用于区分不同业务来源(例:"article"=宣教推送)
*/
private String businessId;
/**
* 消息图片URL(封面图全路径)
*/
private String messageImageUrl;
}
@@ -145,7 +145,7 @@ public class FirstAidPushServiceImpl implements IFirstAidPushService {
sendIm.setType(1);
sendIm.setTitle(resource.getTitle());
sendIm.setContent(StrUtil.isNotBlank(resource.getSummary()) ? resource.getSummary() : resource.getTitle());
sendIm.setBusinessId("article");
sendIm.setMessageImageUrl(resource.getCoverImage());
ImGroupMsgTextReqDO im = new ImGroupMsgTextReqDO();
im.setGroupId(order.getSessionId());