|
|
@@ -38,12 +38,12 @@ public class UserSuggestServiceImpl implements UserSuggestService {
|
|
|
public void suggestGoodsUsage(UserFeedbackProgressRecord progressRecord) {
|
|
|
Long goodsId = progressRecord.getGoodsId();
|
|
|
Long userId = progressRecord.getUserId();
|
|
|
- String img = progressRecord.getImg();
|
|
|
+ String imgs = progressRecord.getImgs();
|
|
|
String content = progressRecord.getContent();
|
|
|
- if (StrUtil.isAllEmpty(img, content)) {
|
|
|
+ if (StrUtil.isAllEmpty(imgs, content)) {
|
|
|
throw BusinessRuntimeException.getInstance("请填写问题内容或截图");
|
|
|
}
|
|
|
- if (StrUtil.isNotBlank(img) && img.length() > 1024) {
|
|
|
+ if (StrUtil.isNotBlank(imgs) && imgs.length() > 1024) {
|
|
|
throw BusinessRuntimeException.getInstance("图片过多");
|
|
|
}
|
|
|
if (StrUtil.isNotEmpty(content) && content.length() > 1000) {
|
|
|
@@ -102,11 +102,11 @@ public class UserSuggestServiceImpl implements UserSuggestService {
|
|
|
throw BusinessRuntimeException.getInstance("反馈记录不存在");
|
|
|
}
|
|
|
String content = progressRecord.getContent();
|
|
|
- String img = progressRecord.getImg();
|
|
|
- if (StrUtil.isAllEmpty(img, content)) {
|
|
|
+ String imgs = progressRecord.getImgs();
|
|
|
+ if (StrUtil.isAllEmpty(imgs, content)) {
|
|
|
throw BusinessRuntimeException.getInstance("请填写留言内容或截图");
|
|
|
}
|
|
|
- if (StrUtil.isNotBlank(img) && img.length() > 1024) {
|
|
|
+ if (StrUtil.isNotBlank(imgs) && imgs.length() > 1024) {
|
|
|
throw BusinessRuntimeException.getInstance("图片过多");
|
|
|
}
|
|
|
if (StrUtil.isNotEmpty(content) && content.length() > 1000) {
|