Commit 4fccc423 by 阮思源

修改群发作品

parent cc8a849a
...@@ -304,7 +304,9 @@ public class PushBizImpl implements PushBiz { ...@@ -304,7 +304,9 @@ public class PushBizImpl implements PushBiz {
if (productDto != null) { if (productDto != null) {
SendArticleMessageVO sendArticleMessageVO = new SendArticleMessageVO(); SendArticleMessageVO sendArticleMessageVO = new SendArticleMessageVO();
sendArticleMessageVO.setAltId(altId); sendArticleMessageVO.setAltId(altId);
sendArticleMessageVO.setDescription(productDto.getProductTypeName()); if (productDto.getProductTypeDto() != null) {
sendArticleMessageVO.setDescription(productDto.getProductTypeDto().getTypeName());
}
sendArticleMessageVO.setGroupId(groupId); sendArticleMessageVO.setGroupId(groupId);
// 处理链接地址 // 处理链接地址
String endUrl = pushItem.getProductUrl() + "&" + otherUrl; String endUrl = pushItem.getProductUrl() + "&" + otherUrl;
...@@ -617,7 +619,9 @@ public class PushBizImpl implements PushBiz { ...@@ -617,7 +619,9 @@ public class PushBizImpl implements PushBiz {
ProductDto productDto = productDtoMap.get(pushItem.getProductId()); ProductDto productDto = productDtoMap.get(pushItem.getProductId());
if (productDto != null) { if (productDto != null) {
pushItem.setApName(productDto.getProductName()); pushItem.setApName(productDto.getProductName());
pushItem.setApTypeName(productDto.getProductTypeName()); if (productDto.getProductTypeDto() != null) {
pushItem.setApTypeName(productDto.getProductTypeDto().getTypeName());
}
pushItem.setApImage(productDto.getCoverImg()); pushItem.setApImage(productDto.getCoverImg());
} }
} }
......
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