REQ-3045: 下发项目默认图标
This commit is contained in:
parent
503f0afc76
commit
26e1ac1602
@ -1,6 +1,7 @@
|
||||
package cn.axzo.msg.center.inside.notices.service.impl.v3.msg;
|
||||
|
||||
import cn.axzo.msg.center.domain.entity.MessageRecordV3;
|
||||
import cn.axzo.msg.center.inside.notices.config.MessageSystemConfig;
|
||||
import cn.axzo.msg.center.message.domain.dto.TemplateModelV3;
|
||||
import cn.axzo.msg.center.message.domain.vo.GeneralMessagePushVO;
|
||||
import cn.axzo.msg.center.message.domain.vo.GeneralMessagePushVO.CardButton;
|
||||
@ -45,6 +46,7 @@ public class MessageTemplateParserV3 {
|
||||
|
||||
private final ModelV3Parser modelV3Parser;
|
||||
private final ModelV3ExtPopulator modelV3ExtPopulator;
|
||||
private final MessageSystemConfig messageSystemConfig;
|
||||
|
||||
GeneralMessagePushVO parse(MessageRecordV3 message, TemplateModelV3 templateModel) {
|
||||
String orgIcon = templateModel.getTemplate().getIcon();
|
||||
@ -59,7 +61,7 @@ public class MessageTemplateParserV3 {
|
||||
im.setSendTimestamp(message.getCreateAt().getTime());
|
||||
if (StringUtils.isNotBlank(message.getSubtitle())) {
|
||||
Subtitle subtitle = new Subtitle();
|
||||
subtitle.setIconUrl(orgIcon);
|
||||
subtitle.setIconUrl(messageSystemConfig.getOrgIcon());
|
||||
subtitle.setTitle(message.getSubtitle());
|
||||
im.setSubtitles(Collections.singletonList(subtitle));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user