|
@@ -195,7 +195,7 @@ func (this *VideoController) AddVideo() {
|
|
|
utils.FileLog.Info("音频记录es新增成功, pdfId:" + docId)
|
|
|
}(audioInsert.ToView())
|
|
|
// 创建消息
|
|
|
- _, _ = services.CreateMeta(audioInsert.AuthorName, audioInsert.AuthorId, audioInsert.Id, audioInsert.PublishedTime.Format(time.DateTime), models.AudioSourceType)
|
|
|
+ _, _ = services.CreateMeta(audioInsert.AuthorName, audioInsert.AuthorId, audioInsert.Id, audioInsert.PublishedTime.Format(time.DateTime), models.VideoSourceType)
|
|
|
br.Msg = "添加成功"
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
@@ -268,7 +268,6 @@ func (this *VideoController) EditVideo() {
|
|
|
br.ErrMsg = "视频更新失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- // 添加es
|
|
|
go func(audio *models.ESMedia) {
|
|
|
docId := strconv.Itoa(audio.MediaId)
|
|
|
err = elastic.EsAddOrEditMedia(utils.MEDIA_INDEX, docId, audio)
|