fix serie add error

This commit is contained in:
deepzz0
2017-01-09 22:04:19 +08:00
parent 158122a8fc
commit 00525911fb
3 changed files with 3 additions and 2 deletions

2
api.go
View File

@@ -298,7 +298,7 @@ func apiSerieAdd(c *gin.Context) {
responseNotice(c, NOTICE_NOTICE, "参数错误", "")
return
}
mid, err := strconv.Atoi(c.Query("mid"))
mid, err := strconv.Atoi(c.PostForm("mid"))
if err == nil && mid > 0 {
serie := QuerySerie(int32(mid))
if serie == nil {