|
@@ -157,6 +157,10 @@ func (this *VideoController) AddVideo() {
|
|
|
br.Msg = "视频时长为空"
|
|
|
return
|
|
|
}
|
|
|
+ if req.CoverSrc == "" {
|
|
|
+ br.Msg = "封面为空"
|
|
|
+ return
|
|
|
+ }
|
|
|
var err error
|
|
|
//var coverSrc int
|
|
|
//permissions := strings.Split(req.PermissionIds, ",")
|
|
@@ -185,7 +189,7 @@ func (this *VideoController) AddVideo() {
|
|
|
AuthorName: req.AnalystName,
|
|
|
MediaType: models.Video,
|
|
|
Src: req.SrcUrl,
|
|
|
- CoverSrc: "",
|
|
|
+ CoverSrc: req.CoverSrc,
|
|
|
MediaName: req.VideoName,
|
|
|
SourceType: "mp4",
|
|
|
MediaPlayMilliseconds: req.DurationMillisecond,
|