🐛 分享链接数据丢失问题修复
This commit is contained in:
parent
2ac72ab28a
commit
843b8b723a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user