fix: FIX BUG
This commit is contained in:
parent
d882cc1997
commit
919766f652
@ -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, "评论发布失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user