feat: complete wechat pay
This commit is contained in:
@@ -46,7 +46,7 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
))
|
||||
|
||||
// 注册路由组: pays
|
||||
router.Get("/pay/callback/:channel", Func1(
|
||||
router.Post("/pay/callback/:channel", Func1(
|
||||
r.pays.Callback,
|
||||
PathParam[string]("channel"),
|
||||
))
|
||||
@@ -78,7 +78,7 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
Local[*model.Users]("user"),
|
||||
))
|
||||
|
||||
router.Get("/posts/:id/buy", DataFunc2(
|
||||
router.Post("/posts/:id/buy", DataFunc2(
|
||||
r.posts.Buy,
|
||||
PathParam[int64]("id"),
|
||||
Local[*model.Users]("user"),
|
||||
|
||||
Reference in New Issue
Block a user