Commit 33563849 by zhuyajie

fixbug1022323

parent af5e9a50
...@@ -395,22 +395,22 @@ public class PushCheck { ...@@ -395,22 +395,22 @@ public class PushCheck {
item.setTextContent(paramDTO.getContent()); item.setTextContent(paramDTO.getContent());
item.setItemType(ItemTypeEnum.TEXT.value); item.setItemType(ItemTypeEnum.TEXT.value);
} }
if (ReplyTypeEnum.LINK.value.equals(paramDTO.getReplyType())){ else if (ReplyTypeEnum.LINK.value.equals(paramDTO.getReplyType())){
item.setLinkUrl(paramDTO.getLinkUrl()); item.setLinkUrl(paramDTO.getLinkUrl());
item.setLinkTitle(paramDTO.getContent()); item.setLinkTitle(paramDTO.getContent());
item.setLinkDescription(paramDTO.getDescription()); item.setLinkDescription(paramDTO.getDescription());
item.setLinkImageUrl(paramDTO.getPicUrl()); item.setLinkImageUrl(paramDTO.getPicUrl());
item.setItemType(ItemTypeEnum.LINK.value); item.setItemType(ItemTypeEnum.LINK.value);
} }
if (ReplyTypeEnum.IMAGE.value.equals(paramDTO.getReplyType())){ else if (ReplyTypeEnum.IMAGE.value.equals(paramDTO.getReplyType())){
item.setImageUrl(paramDTO.getPicUrl()); item.setImageUrl(paramDTO.getPicUrl());
item.setItemType(ItemTypeEnum.IMAGE.value); item.setItemType(ItemTypeEnum.IMAGE.value);
} }
if (ReplyTypeEnum.RESOURCE.value.equals(paramDTO.getReplyType())){ else if (ReplyTypeEnum.RESOURCE.value.equals(paramDTO.getReplyType())){
item.setResourceId(paramDTO.getResourceId()); item.setResourceId(paramDTO.getResourceId());
item.setItemType(ItemTypeEnum.RESOURCE.value); item.setItemType(ItemTypeEnum.RESOURCE.value);
} }
if (ReplyTypeEnum.APP.value.equals(paramDTO.getReplyType())){ else if (ReplyTypeEnum.APP.value.equals(paramDTO.getReplyType())){
if ("APP".equalsIgnoreCase(paramDTO.getServeType())) { if ("APP".equalsIgnoreCase(paramDTO.getServeType())) {
item.setAppId(paramDTO.getServeId()); item.setAppId(paramDTO.getServeId());
item.setAppUrl(paramDTO.getLinkUrl()); item.setAppUrl(paramDTO.getLinkUrl());
...@@ -425,7 +425,7 @@ public class PushCheck { ...@@ -425,7 +425,7 @@ public class PushCheck {
item.setLinkUrl(paramDTO.getLinkUrl()); item.setLinkUrl(paramDTO.getLinkUrl());
item.setItemType(ItemTypeEnum.APP.value); item.setItemType(ItemTypeEnum.APP.value);
} }
if (ReplyTypeEnum.AUDIO.value.equals(paramDTO.getReplyType())){ else if (ReplyTypeEnum.AUDIO.value.equals(paramDTO.getReplyType())){
item.setResourceId(paramDTO.getResourceId()); item.setResourceId(paramDTO.getResourceId());
item.setItemType(ItemTypeEnum.AUDIO.value); item.setItemType(ItemTypeEnum.AUDIO.value);
}else { }else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment