|
@@ -43,7 +43,7 @@ public class UserSuggestServiceImpl implements UserSuggestService {
|
|
|
if (StrUtil.isAllEmpty(imgs, content)) {
|
|
if (StrUtil.isAllEmpty(imgs, content)) {
|
|
|
throw BusinessRuntimeException.getInstance("请填写问题内容或截图");
|
|
throw BusinessRuntimeException.getInstance("请填写问题内容或截图");
|
|
|
}
|
|
}
|
|
|
- if (StrUtil.isNotBlank(imgs) && imgs.length() > 1024) {
|
|
|
|
|
|
|
+ if (StrUtil.isNotBlank(imgs) && imgs.length() > 2024) {
|
|
|
throw BusinessRuntimeException.getInstance("图片过多");
|
|
throw BusinessRuntimeException.getInstance("图片过多");
|
|
|
}
|
|
}
|
|
|
if (StrUtil.isNotEmpty(content) && content.length() > 1000) {
|
|
if (StrUtil.isNotEmpty(content) && content.length() > 1000) {
|
|
@@ -106,7 +106,7 @@ public class UserSuggestServiceImpl implements UserSuggestService {
|
|
|
if (StrUtil.isAllEmpty(imgs, content)) {
|
|
if (StrUtil.isAllEmpty(imgs, content)) {
|
|
|
throw BusinessRuntimeException.getInstance("请填写留言内容或截图");
|
|
throw BusinessRuntimeException.getInstance("请填写留言内容或截图");
|
|
|
}
|
|
}
|
|
|
- if (StrUtil.isNotBlank(imgs) && imgs.length() > 1024) {
|
|
|
|
|
|
|
+ if (StrUtil.isNotBlank(imgs) && imgs.length() > 2024) {
|
|
|
throw BusinessRuntimeException.getInstance("图片过多");
|
|
throw BusinessRuntimeException.getInstance("图片过多");
|
|
|
}
|
|
}
|
|
|
if (StrUtil.isNotEmpty(content) && content.length() > 1000) {
|
|
if (StrUtil.isNotEmpty(content) && content.length() > 1000) {
|