feat(emergency): 推送IM消息增加resourceId文章ID字段

This commit is contained in:
2026-07-08 09:20:50 +08:00
parent a1e5625ca7
commit 194c3b2134
2 changed files with 5 additions and 0 deletions
@@ -28,4 +28,8 @@ public class SendIm {
* 消息图片URL(封面图全路径)
*/
private String messageImageUrl;
/**
* 文章ID(宣教资源ID)
*/
private String resourceId;
}
@@ -157,6 +157,7 @@ public class FirstAidPushServiceImpl implements IFirstAidPushService {
coverImage = StrUtil.removeSuffix(fileBaseUrl, "/") + "/" + StrUtil.removePrefix(coverImage, "/");
}
sendIm.setMessageImageUrl(coverImage);
sendIm.setResourceId(resourceId);
ImGroupMsgTextReqDO im = new ImGroupMsgTextReqDO();
im.setGroupId(order.getSessionId());