|
@@ -55,6 +55,9 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (!Validator.isMobile(impressionNanan.getUploaderPhone())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "电话格式不正确,请填入移动电话号码");
|
|
|
}
|
|
|
+ if (Blank.isEmpty(file)) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "文件不能为空");
|
|
|
+ }
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureTitle())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "标题不能为空");
|
|
|
}
|
|
@@ -64,8 +67,8 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureAuthor())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
|
}
|
|
|
- if (impressionNanan.getPictureAuthor().length() > 50) {
|
|
|
- return SendUtil.send(false, ConstStr.ADD_FAILED, "作者长度不能大于50");
|
|
|
+ if (impressionNanan.getPictureAuthor().length() > 10) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "作者长度不能大于10");
|
|
|
}
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureDescription())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
@@ -132,8 +135,8 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureAuthor())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
|
}
|
|
|
- if (impressionNanan.getPictureAuthor().length() > 50) {
|
|
|
- return SendUtil.send(false, ConstStr.ADD_FAILED, "作者长度不能大于50");
|
|
|
+ if (impressionNanan.getPictureAuthor().length() > 10) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "作者长度不能大于10");
|
|
|
}
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureDescription())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
@@ -180,8 +183,8 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureAuthor())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
|
}
|
|
|
- if (impressionNanan.getPictureAuthor().length() > 50) {
|
|
|
- return SendUtil.send(false, ConstStr.ADD_FAILED, "作者长度不能大于50");
|
|
|
+ if (impressionNanan.getPictureAuthor().length() > 10) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "作者长度不能大于10");
|
|
|
}
|
|
|
if (Blank.isEmpty(impressionNanan.getPictureDescription())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|