Commit e590b6ee authored by 刘基明's avatar 刘基明

评论、标题长度校验

parent 7e8a8490
......@@ -509,7 +509,7 @@ public class ThemeManager {
*/
private void checkContent(CreateThemeReq req) {
if (req.getTitle().length()>50){
if (ThemeTypeEnum.LONG_TEXT.getCode().equals(req.getThemeType()) && req.getTitle().length()>50){
throw new IllegalArgumentException("长文标题不能超过50字");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment