Commit 25a9fb47 authored by 张辰's avatar 张辰

add @authlogin

parent bb085955
...@@ -78,6 +78,7 @@ public class HomePageController { ...@@ -78,6 +78,7 @@ public class HomePageController {
@PostMapping(value = "/addIdol") @PostMapping(value = "/addIdol")
@ApiOperation("关注/取消关注他人") @ApiOperation("关注/取消关注他人")
@ResponseBody @ResponseBody
@AuthLogin
public CommonResp addIdol(@RequestBody FollowRelReq req) { public CommonResp addIdol(@RequestBody FollowRelReq req) {
String userId = userHolder.getUserId(); String userId = userHolder.getUserId();
homePageManager.addFollowRel(req, userId); homePageManager.addFollowRel(req, userId);
......
...@@ -527,7 +527,7 @@ public class ThemeManager { ...@@ -527,7 +527,7 @@ public class ThemeManager {
//返回被转发主题 //返回被转发主题
private FormerThemeQo getFormerTheme(String formerThemeId) { private FormerThemeQo getFormerTheme(String formerThemeId) {
if (StringUtils.isNotEmpty(formerThemeId)) { if (StringUtils.isNotBlank(formerThemeId)) {
ThemeQo formerTheme = ConvertUtil.themeEntityToQo(themeService.queryByThemeId(formerThemeId)); ThemeQo formerTheme = ConvertUtil.themeEntityToQo(themeService.queryByThemeId(formerThemeId));
if (formerTheme != null) { if (formerTheme != null) {
batchFeignCallService.getAttachDetail(formerTheme); batchFeignCallService.getAttachDetail(formerTheme);
......
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