feat: payjs payment channel is ready

This commit is contained in:
RockYang
2024-01-07 14:36:02 +08:00
parent 706aacd8e6
commit 8ec85e2829
11 changed files with 279 additions and 88 deletions

View File

@@ -170,6 +170,7 @@ func main() {
fx.Provide(payment.NewAlipayService),
fx.Provide(payment.NewHuPiPay),
fx.Provide(payment.NewPayJS),
fx.Provide(service.NewSnowflake),
fx.Provide(service.NewXXLJobExecutor),
fx.Invoke(func(exec *service.XXLJobExecutor, config *types.AppConfig) {
@@ -306,6 +307,7 @@ func main() {
group.POST("qrcode", h.PayQrcode)
group.POST("alipay/notify", h.AlipayNotify)
group.POST("hupipay/notify", h.HuPiPayNotify)
group.POST("payjs/notify", h.PayJsNotify)
}),
fx.Invoke(func(s *core.AppServer, h *admin.ProductHandler) {
group := s.Engine.Group("/api/admin/product/")