BaseMsgContent新增bulidReceiveCode方法,支持开发者再扩展消息类型的时候,通过userCode获取receiveCode等信息接口。
This commit is contained in:
@@ -158,8 +158,8 @@ public class MsgInnerService extends CrudService<MsgInnerDao, MsgInner> {
|
|||||||
BaseMsgContent msgContent = null;
|
BaseMsgContent msgContent = null;
|
||||||
if (MsgPush.TYPE_PC.equals(type)){
|
if (MsgPush.TYPE_PC.equals(type)){
|
||||||
msgContent = new PcMsgContent();
|
msgContent = new PcMsgContent();
|
||||||
msgContent.setContent("你有一条内部消息,点击“详情”进行查阅。");
|
msgContent.setContent(text("你有一条内部消息,点击“详情”进行查阅。"));
|
||||||
((PcMsgContent)msgContent).addButton(new String[]{"详情",
|
((PcMsgContent)msgContent).addButton(new String[]{text("详情"),
|
||||||
Global.getAdminPath()+"/msg/msgInner/view?id="+msgInner.getId()});
|
Global.getAdminPath()+"/msg/msgInner/view?id="+msgInner.getId()});
|
||||||
}else if (MsgPush.TYPE_APP.equals(type)){
|
}else if (MsgPush.TYPE_APP.equals(type)){
|
||||||
msgContent = new AppMsgContent();
|
msgContent = new AppMsgContent();
|
||||||
@@ -171,7 +171,7 @@ public class MsgInnerService extends CrudService<MsgInnerDao, MsgInner> {
|
|||||||
if (msgContent != null){
|
if (msgContent != null){
|
||||||
msgContent.setTitle(msgInner.getMsgTitle());
|
msgContent.setTitle(msgInner.getMsgTitle());
|
||||||
if (msgContent.getContent() == null){
|
if (msgContent.getContent() == null){
|
||||||
msgContent.setContent("你有一条内部消息请查阅:"
|
msgContent.setContent(text("你有一条内部消息请查阅:")
|
||||||
+ StringUtils.abbr(msgInner.getMsgTitle(), 30));
|
+ StringUtils.abbr(msgInner.getMsgTitle(), 30));
|
||||||
}
|
}
|
||||||
msgContent.setMsgPush(new MsgPush());
|
msgContent.setMsgPush(new MsgPush());
|
||||||
|
|||||||
Reference in New Issue
Block a user