fix-话题

This commit is contained in:
xl
2024-07-09 20:03:24 +08:00
parent 7c3493e24b
commit 99b3e6f6ea
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ public class ActivityTopicController {
activityTopicService.increaseCountView(id);
}
CommunityTopic topic = topicService.getById(activityTopic.getTopicId());
activityTopic.setName(Optional.ofNullable(topic).map(CommunityTopic::getName).orElse(""));
activityTopic.setTopicName(Optional.ofNullable(topic).map(CommunityTopic::getName).orElse(""));
return CommonResult.success(activityTopic);
}
}