fix: mp verify

This commit is contained in:
yanghao05
2025-04-23 09:36:31 +08:00
parent 7a7bd3ff6e
commit 837941b7ec
5 changed files with 40 additions and 7 deletions

View File

@@ -14,10 +14,11 @@ import (
// @provider contracts.HttpRoute atom.GroupRoutes
type Routes struct {
log *log.Entry `inject:"false"`
auth *auth
pays *pays
posts *posts
log *log.Entry `inject:"false"`
auth *auth
pays *pays
posts *posts
weChat *weChat
}
func (r *Routes) Prepare() error {
@@ -74,4 +75,10 @@ func (r *Routes) Register(router fiber.Router) {
Local[*model.Users]("user"),
))
// 注册路由组: weChat
router.Get("/MP_verify_:code.txt", Func1(
r.weChat.Verify,
PathParam[string]("code"),
))
}