fix: FIX BUG

This commit is contained in:
sunhe 2025-05-19 04:27:49 +08:00
parent d882cc1997
commit 919766f652

View File

@ -165,11 +165,10 @@ public class commentController {
comment.setContent(content); comment.setContent(content);
comment.setUserId(loginUser.getId()); comment.setUserId(loginUser.getId());
comment.setIsDelete(0); comment.setIsDelete(0);
// 6. 保存评论 // 6. 保存评论
boolean result = commentService.save(comment); boolean result = commentService.save(comment);
if (!result) { if (!result) {
throw new BusinessException(Erro rCode.SYSTEM_ERROR, "评论发布失败"); throw new BusinessException(ErrorCode.SYSTEM_ERROR, "评论发布失败");
} }