Browse Source

no message

xingzai 1 year ago
parent
commit
b2bbed4168
1 changed files with 4 additions and 4 deletions
  1. 4 4
      controllers/cygx/activity.go

+ 4 - 4
controllers/cygx/activity.go

@@ -633,8 +633,8 @@ func (this *ActivityCoAntroller) PreserveAndPublish() {
 						itemVoice.VoiceName = vo.Name
 						itemVoice.VoiceUrl = vo.Url
 						itemVoice.VoicePlaySeconds = vo.PlaySeconds
-						itemVoice.BackgroundImg = vo.BackgroundImg
-						itemVoice.ShareImg = vo.ShareImg
+						itemVoice.BackgroundImg = req.BackgroundImg
+						itemVoice.ShareImg = req.ShareImg
 						itemVoice.CreateTime = time.Now()
 					}
 				}
@@ -645,8 +645,8 @@ func (this *ActivityCoAntroller) PreserveAndPublish() {
 					itemVideo.ActivityId = activityId
 					itemVideo.VideoDuration = videoDetail.VideoDuration
 					itemVideo.VideoUrl = videoDetail.VideoUrl
-					itemVideo.BackgroundImg = videoDetail.BackgroundImg
-					itemVideo.ShareImg = videoDetail.ShareImg
+					itemVideo.BackgroundImg = req.BackgroundImg
+					itemVideo.ShareImg = req.ShareImg
 					itemVideo.ModifyDate = time.Now().Format(utils.FormatDateTime)
 					itemVideo.CreateTime = time.Now().Format(utils.FormatDateTime)
 				}