Browse Source

no message

xingzai 1 year ago
parent
commit
db53bc2ba8

+ 1 - 1
controllers/cygx/activity_video.go

@@ -596,7 +596,7 @@ func (this *ActivityVideoCoAntroller) VoiceAndVideoCommentList() {
 	var condition string
 	var pars []interface{}
 
-	videoInfo, _ := cygx.GetCygxActivityVideoReqDetailByVideoId(activityId)
+	videoInfo, _ := cygx.GetCygxActivityVideoReqDetail(activityId)
 	if videoInfo != nil {
 		condition += `  AND activity_id =  ? AND video_id = ?  `
 		pars = append(pars, videoInfo.ActivityId, videoInfo.VideoId)

+ 4 - 0
controllers/cygx/askserie_video.go

@@ -285,6 +285,10 @@ func (this *AskserieVideoController) HistoryList() {
 		br.ErrMsg = "获取数据失败,Err:" + err.Error()
 		return
 	}
+
+	for _, v := range list {
+		v.PlaySeconds = v.VideoDuration
+	}
 	resp.List = list
 	br.Ret = 200
 	br.Success = true

+ 1 - 0
models/cygx/askserie_video_history_record.go

@@ -16,6 +16,7 @@ type CygxAskserieVideoHistoryRecordResp struct {
 	RegisterPlatform int    `description:"来源 1小程序,2:网页"`
 	ModifyTime       string `description:"更新时间"`
 	VideoDuration    string `description:"视频时长"`
+	PlaySeconds      string `description:"播放时间 单位s"`
 }
 
 type AskserieVideoIdIdReq struct {