|
@@ -2,6 +2,7 @@ package com.zhongzheng.modules.polyv.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.http.HttpStatus;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -401,7 +402,11 @@ public class PolyvVideoServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVi
|
|
|
polyvVideo.setUploaderRole(i.getUploader().getRole());
|
|
|
polyvVideo.setCreateTime(DateUtils.getNowTime());
|
|
|
polyvVideo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- this.save(polyvVideo);
|
|
|
+ if(Validator.isNotEmpty(polyvVideo.getDuration())){
|
|
|
+ //有时长才存入数据库
|
|
|
+ this.save(polyvVideo);
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
@Override
|