Commit aeb63a33 authored by 吴泽佳's avatar 吴泽佳
parents e3db074c af30617c
......@@ -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