提交 2751ba2e 编写于 作者: minghao.wu's avatar minghao.wu

fix: 头像为空时返回默认头像

上级 3a7179cb
......@@ -219,7 +219,9 @@ public class CHCAnalysisServiceImpl implements CHCAnalysisService {
replyDto.setReplyId(reply.getId());
replyDto.setSeqNo(reply.getSeqNo());
replyDto.setUserId(reply.getUserId());
replyDto.setUserAvatarImageUrl(doctor.getAvatarImageUrl() != null ? properties.getFileUrl() + doctor.getAvatarImageUrl().trim() : null);
replyDto.setUserAvatarImageUrl(doctor.getAvatarImageUrl() != null
? properties.getFileUrl() + doctor.getAvatarImageUrl().trim()
: properties.getFileUrl() + "/File/doctor_default.png");
replyDto.setUserName(doctor.getName());
replyDto.setPostTitle(doctor.getTitle());
replyDto.setHospital(doctor.getHospital());
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册