|
@@ -55,12 +55,21 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (!Validator.isMobile(impressionNanan.getUploaderPhone())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "电话格式不正确,请填入移动电话号码");
|
|
|
}
|
|
|
+ if (Blank.isEmpty(impressionNanan.getPictureTitle())) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "标题不能为空");
|
|
|
+ }
|
|
|
if (impressionNanan.getPictureTitle().length() > 100) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "标题长度不能大于100");
|
|
|
}
|
|
|
+ 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 (Blank.isEmpty(impressionNanan.getPictureDescription())) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
|
+ }
|
|
|
if (impressionNanan.getPictureDescription().length() > 200) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "图片描述长度不能大于200");
|
|
|
}
|
|
@@ -114,12 +123,21 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (!Validator.isMobile(impressionNanan.getUploaderPhone())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "电话格式不正确,请填入移动电话号码");
|
|
|
}
|
|
|
+ if (Blank.isEmpty(impressionNanan.getPictureTitle())) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "标题不能为空");
|
|
|
+ }
|
|
|
if (impressionNanan.getPictureTitle().length() > 100) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "标题长度不能大于100");
|
|
|
}
|
|
|
+ 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 (Blank.isEmpty(impressionNanan.getPictureDescription())) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
|
+ }
|
|
|
if (impressionNanan.getPictureDescription().length() > 200) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "图片描述长度不能大于200");
|
|
|
}
|
|
@@ -153,12 +171,21 @@ public class YxnnServiceImpl implements YxnnService {
|
|
|
if (!Validator.isMobile(impressionNanan.getUploaderPhone())) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "电话格式不正确,请填入移动电话号码");
|
|
|
}
|
|
|
+ if (Blank.isEmpty(impressionNanan.getPictureTitle())) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "标题不能为空");
|
|
|
+ }
|
|
|
if (impressionNanan.getPictureTitle().length() > 100) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "标题长度不能大于100");
|
|
|
}
|
|
|
+ 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 (Blank.isEmpty(impressionNanan.getPictureDescription())) {
|
|
|
+ return SendUtil.send(false, ConstStr.ADD_FAILED, "作者不能为空");
|
|
|
+ }
|
|
|
if (impressionNanan.getPictureDescription().length() > 200) {
|
|
|
return SendUtil.send(false, ConstStr.ADD_FAILED, "图片描述长度不能大于200");
|
|
|
}
|