diff --git a/server/server.go b/server/server.go index 9eba2ec..58e55ad 100644 --- a/server/server.go +++ b/server/server.go @@ -17,8 +17,8 @@ func initRoutge(engine *gin.Engine) { noTokenGroup.Use(base.Recovery).Use(base.Before) noTokenGroup.POST("/pay", controller.NewPayment().Pay) - noTokenGroup.GET("/payment/auth/alipay", controller.NewPayment().AlipayAuth) noTokenGroup.POST("/payment", controller.NewPayment().Pay) + noTokenGroup.GET("/payment/auth/alipay", controller.NewPayment().AlipayAuth) apiGroup.GET("/payment", controller.NewPayment().List) apiGroup.GET("/payment/suggest", controller.NewPayment().Suggest) noTokenGroup.Any("/qyweixin/approve/:cid", controller.NewQyWeixin().Approve)