|
|
@@ -314,6 +314,17 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(ghDetailVo.getVideoList())) {
|
|
|
+ for (GhDetailVo.VideoDetail videoDetail : ghDetailVo.getVideoList()) {
|
|
|
+ if (StringUtils.isEmpty(videoDetail.getTitle())) {
|
|
|
+ return CommonResponse.create(500, "视频标题不能为空");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(videoDetail.getCover())) {
|
|
|
+ return CommonResponse.create(500, "视频封面不能为空");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (StringUtils.isNotEmpty(ghDetailVo.getContentDetail())) {
|
|
|
ghDetailVo.setContentDetail(ghDetailVo.getContentDetail().trim());
|
|
|
if (!JSONObject.isValidObject(ghDetailVo.getContentDetail())) {
|