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

@@ -54,11 +54,13 @@ func Provide(opts ...opt.Option) error {
auth *auth,
pays *pays,
posts *posts,
weChat *weChat,
) (contracts.HttpRoute, error) {
obj := &Routes{
auth: auth,
pays: pays,
posts: posts,
auth: auth,
pays: pays,
posts: posts,
weChat: weChat,
}
if err := obj.Prepare(); err != nil {
return nil, err
@@ -68,5 +70,12 @@ func Provide(opts ...opt.Option) error {
}, atom.GroupRoutes); err != nil {
return err
}
if err := container.Container.Provide(func() (*weChat, error) {
obj := &weChat{}
return obj, nil
}); err != nil {
return err
}
return nil
}