ziwen 2 жил өмнө
parent
commit
6475c6cd83

+ 2 - 0
controller/voice_broadcast/voice_broadcast.go

@@ -90,6 +90,7 @@ func AddBroadcast(c *gin.Context) {
 	nauthorId := c.PostForm("author_id")
 	authorId, _ := strconv.Atoi(nauthorId)
 	author := c.PostForm("author")
+	imgUrl := c.PostForm("img_url")
 	file, err := c.FormFile("file")
 	if err != nil {
 		response.FailMsg("获取资源失败", "获取资源失败, Err:"+err.Error(), c)
@@ -156,6 +157,7 @@ func AddBroadcast(c *gin.Context) {
 		VarietyName:      varietyName,
 		AuthorId:         authorId,
 		Author:           author,
+		ImgUrl:           imgUrl,
 		VoiceUrl:         resourceUrl,
 		VoicePlaySeconds: fmt.Sprint(seconds),
 		VoiceSize:        fmt.Sprint(mb),