sif: Fix parsing multipart again

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-06-24 19:14:42 +08:00
parent c85ddda228
commit 9d03532a1b
3 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -65,10 +65,10 @@ func SifRouter(r *gin.Engine) {
m.POST("/award/set", handler.AwardSet)
m.POST("/background/set", handler.BackgroundSet)
m.POST("/download/additional", handler.DownloadAdditional)
m.POST("/download/batch", handler.DownloadBatch)
m.POST("/download/event", handler.DownloadEvent)
m.POST("/download/getUrl", handler.DownloadUrl)
m.POST("/download/update", handler.DownloadUpdate)
m.POST("/download/batch", middleware.ParseMultipartForm, handler.DownloadBatch)
m.POST("/download/event", middleware.ParseMultipartForm, handler.DownloadEvent)
m.POST("/download/getUrl", middleware.ParseMultipartForm, handler.DownloadUrl)
m.POST("/download/update", middleware.ParseMultipartForm, handler.DownloadUpdate)
m.POST("/event/eventList", middleware.ParseMultipartForm, handler.EventList)
m.POST("/gdpr/get", middleware.ParseMultipartForm, handler.Gdpr)
m.POST("/lbonus/execute", handler.LBonusExecute)
@@ -78,7 +78,7 @@ func SifRouter(r *gin.Engine) {
m.POST("/live/preciseScore", middleware.ParseMultipartForm, handler.PlayScore)
m.POST("/live/reward", middleware.ParseMultipartForm, handler.PlayReward)
m.POST("/login/authkey", middleware.AuthKey, handler.AuthKey)
m.POST("/login/login", middleware.Login, handler.Login)
m.POST("/login/login", middleware.ParseMultipartForm, middleware.Login, handler.Login)
m.POST("/multiunit/scenarioStartup", handler.MultiUnitStartUp)
m.POST("/museum/info", middleware.ParseMultipartForm, handler.MuseumInfo)
m.POST("/notice/noticeFriendGreeting", middleware.ParseMultipartForm, handler.NoticeFriendGreeting)