🐛 分享链接数据丢失问题修复

This commit is contained in:
ronger 2022-05-25 10:33:45 +08:00
parent 2ac72ab28a
commit 843b8b723a

View File

@ -274,10 +274,8 @@ public class ArticleServiceImpl extends AbstractService<Article> implements Arti
if (Objects.isNull(user)) { if (Objects.isNull(user)) {
throw new BaseApiException(ErrorCode.INVALID_TOKEN); throw new BaseApiException(ErrorCode.INVALID_TOKEN);
} }
StringBuilder shareUrl = new StringBuilder(article.getArticlePermalink()); Map map = new HashMap(2);
shareUrl.append("?s=").append(user.getAccount()); map.put("shareUrl", article.getArticlePermalink() + "?s=" + user.getAccount());
Map map = new HashMap(1);
map.put("shareUrl", shareUrl.toString());
return map; return map;
} }