feat(emergency): 推送IM消息增加resourceId文章ID字段
This commit is contained in:
+4
@@ -28,4 +28,8 @@ public class SendIm {
|
|||||||
* 消息图片URL(封面图全路径)
|
* 消息图片URL(封面图全路径)
|
||||||
*/
|
*/
|
||||||
private String messageImageUrl;
|
private String messageImageUrl;
|
||||||
|
/**
|
||||||
|
* 文章ID(宣教资源ID)
|
||||||
|
*/
|
||||||
|
private String resourceId;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -157,6 +157,7 @@ public class FirstAidPushServiceImpl implements IFirstAidPushService {
|
|||||||
coverImage = StrUtil.removeSuffix(fileBaseUrl, "/") + "/" + StrUtil.removePrefix(coverImage, "/");
|
coverImage = StrUtil.removeSuffix(fileBaseUrl, "/") + "/" + StrUtil.removePrefix(coverImage, "/");
|
||||||
}
|
}
|
||||||
sendIm.setMessageImageUrl(coverImage);
|
sendIm.setMessageImageUrl(coverImage);
|
||||||
|
sendIm.setResourceId(resourceId);
|
||||||
|
|
||||||
ImGroupMsgTextReqDO im = new ImGroupMsgTextReqDO();
|
ImGroupMsgTextReqDO im = new ImGroupMsgTextReqDO();
|
||||||
im.setGroupId(order.getSessionId());
|
im.setGroupId(order.getSessionId());
|
||||||
|
|||||||
Reference in New Issue
Block a user