@@ -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)
@@ -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
@@ -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 {