fix: mp verify
This commit is contained in:
@@ -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"),
|
||||
))
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user