|
@@ -1119,11 +1119,40 @@ func YanXuanActivityVivoPointsBillSignupReduce(log models.YanXuanActivityPointsR
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ var vivoName string
|
|
|
+
|
|
|
activityInfo, e := models.GetAddActivityInfoByActivityId(activityId)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetAddActivityInfoByActivityId" + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+ totalVi, e := models.GetCygxActivityVideoCount(activityId)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxActivityVideoCount" + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if totalVi > 0 {
|
|
|
+ activityVideoInfo, e := models.GetCygxActivityVideoByActivityId(activityId)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxActivityVideoByActivityId, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ vivoName = activityVideoInfo.VideoName // 视频名称
|
|
|
+ } else {
|
|
|
+ totalVo, e := models.GetCygxActivityVoiceCount(activityId)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxActivityVoiceCount" + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if totalVo > 0 {
|
|
|
+ activityVoiceInfo, e := models.GetCygxActivityVoiceByActivityId(activityId)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxActivityVoiceByActivityId, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ vivoName = activityVoiceInfo.VoiceName // 音频名称
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
user, e := models.GetWxUserItemByUserId(userId)
|
|
|
if e != nil {
|
|
@@ -1155,7 +1184,7 @@ func YanXuanActivityVivoPointsBillSignupReduce(log models.YanXuanActivityPointsR
|
|
|
item.Source = log.Source
|
|
|
item.ChartPermissionId = activityInfo.ChartPermissionId
|
|
|
item.DoType = 1
|
|
|
- item.Content = "查看活动回放"
|
|
|
+ item.Content = "查看活动回放-" + vivoName
|
|
|
item.Points = companyPointsNum - vivoPointsSetDetail.PointsNum
|
|
|
items = append(items, item)
|
|
|
|