提交 904d7f8b 编写于 作者: 智布道's avatar 智布道 👁

🐛 修复登录后但是未关闭匿名评论时发表评论提示昵称必填的问题(逻辑问题)

上级 0ca8ffc3
......@@ -161,7 +161,7 @@ public class BizCommentServiceImpl implements BizCommentService {
this.filterContent(comment);
// 已登录且非匿名,使用当前登录用户的信息评论
if (SessionUtil.isLogin() && !anonymous) {
if (SessionUtil.isLogin()) {
this.setCurrentLoginUserInfo(comment);
} else {
this.setCurrentAnonymousUserInfo(comment);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册