feat(emergency): 推送消息增加封面图字段messageImageUrl,去掉businessId
This commit is contained in:
+4
@@ -24,4 +24,8 @@ public class SendIm {
|
|||||||
* 业务标识,用于区分不同业务来源(例:"article"=宣教推送)
|
* 业务标识,用于区分不同业务来源(例:"article"=宣教推送)
|
||||||
*/
|
*/
|
||||||
private String businessId;
|
private String businessId;
|
||||||
|
/**
|
||||||
|
* 消息图片URL(封面图全路径)
|
||||||
|
*/
|
||||||
|
private String messageImageUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -145,7 +145,7 @@ public class FirstAidPushServiceImpl implements IFirstAidPushService {
|
|||||||
sendIm.setType(1);
|
sendIm.setType(1);
|
||||||
sendIm.setTitle(resource.getTitle());
|
sendIm.setTitle(resource.getTitle());
|
||||||
sendIm.setContent(StrUtil.isNotBlank(resource.getSummary()) ? resource.getSummary() : resource.getTitle());
|
sendIm.setContent(StrUtil.isNotBlank(resource.getSummary()) ? resource.getSummary() : resource.getTitle());
|
||||||
sendIm.setBusinessId("article");
|
sendIm.setMessageImageUrl(resource.getCoverImage());
|
||||||
|
|
||||||
ImGroupMsgTextReqDO im = new ImGroupMsgTextReqDO();
|
ImGroupMsgTextReqDO im = new ImGroupMsgTextReqDO();
|
||||||
im.setGroupId(order.getSessionId());
|
im.setGroupId(order.getSessionId());
|
||||||
|
|||||||
Reference in New Issue
Block a user