Przeglądaj źródła

Merge branch 'cygx/cygx_11.3' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

xingzai 1 rok temu
rodzic
commit
070d7192dd
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 2 1
      models/cygx/activity_video.go
  2. 2 0
      models/cygx/activity_voice.go

+ 2 - 1
models/cygx/activity_video.go

@@ -65,6 +65,8 @@ func UpdateCygxActivityVideo(item *CygxActivityVideo) (err error) {
 	updateParams["VideoName"] = item.VideoName
 	updateParams["VideoDuration"] = item.VideoDuration
 	updateParams["VideoUrl"] = item.VideoUrl
+	updateParams["BackgroundImg"] = item.BackgroundImg
+	updateParams["ShareImg"] = item.ShareImg
 	updateParams["ModifyDate"] = time.Now()
 	ptrStructOrTableName := "cygx_activity_video"
 	whereParam := map[string]interface{}{"activity_id": item.ActivityId}
@@ -193,5 +195,4 @@ func DeleteCygxActivityVideo(activityId int) (err error) {
 	sql := ` DELETE FROM cygx_activity_video WHERE  activity_id= ? `
 	_, err = o.Raw(sql, activityId).Exec()
 	return
-
 }

+ 2 - 0
models/cygx/activity_voice.go

@@ -41,6 +41,8 @@ func UpdateCygxActivityVoice(item *CygxActivityVoice) (err error) {
 	updateParams["VoiceName"] = item.VoiceName
 	updateParams["VoicePlaySeconds"] = item.VoicePlaySeconds
 	updateParams["VoiceUrl"] = item.VoiceUrl
+	updateParams["BackgroundImg"] = item.BackgroundImg
+	updateParams["ShareImg"] = item.ShareImg
 	ptrStructOrTableName := "cygx_activity_voice"
 	whereParam := map[string]interface{}{"activity_id": item.ActivityId}
 	qs := to.QueryTable(ptrStructOrTableName)