refactor: 移除wepay依赖,简化订单退款逻辑

This commit is contained in:
2025-12-20 00:00:57 +08:00
parent df6a8de61d
commit 109cd3b52d
5 changed files with 14 additions and 81 deletions

View File

@@ -6,7 +6,6 @@ import (
"quyun/v2/providers/app"
"quyun/v2/providers/job"
"quyun/v2/providers/jwt"
"quyun/v2/providers/wepay"
"go.ipao.vip/atom"
"go.ipao.vip/atom/container"
@@ -37,12 +36,8 @@ func Provide(opts ...opt.Option) error {
}); err != nil {
return err
}
if err := container.Container.Provide(func(
wepay *wepay.Client,
) (*orders, error) {
obj := &orders{
wepay: wepay,
}
if err := container.Container.Provide(func() (*orders, error) {
obj := &orders{}
return obj, nil
}); err != nil {