fix-发布帖子
This commit is contained in:
@@ -152,6 +152,9 @@ public class CommunityNoteController {
|
||||
}
|
||||
|
||||
private void checkCommunity(CommunityNoteSaveRequest request) {
|
||||
if (StrUtil.isBlank(request.getImage()) && StrUtil.isBlank(request.getVideo()) && StrUtil.isBlank(request.getContent())) {
|
||||
throw new LxkException("发布内容不能为空");
|
||||
}
|
||||
if (StrUtil.isNotBlank(request.getTitle()) && request.getTitle().contains("测试")) {
|
||||
throw new LxkException("发布内容不能包含测试");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user