🎨 新增支付动态配置&优化支付回调&新增三方支付
This commit is contained in:
@@ -10,14 +10,17 @@ func (r *OrderRouter) InitOrderRouter(AppRouter, SysteamRouter, PublicRouter *gi
|
||||
publicRouter := PublicRouter.Group("app_order")
|
||||
systeamRouter := SysteamRouter.Group("order")
|
||||
{
|
||||
appRouter.POST("", orderApi.CreateOrder) // 创建订单
|
||||
appRouter.POST("/wechat/pay", orderApi.PayOrder) // 微信支付订单
|
||||
appRouter.GET("/list", orderApi.AppGetOrderList) // 获取订单列表
|
||||
appRouter.GET(":id", orderApi.GetOrderDetail) // 获取订单详情
|
||||
appRouter.POST("/balance/pay", orderApi.BalancePay) // 余额支付
|
||||
appRouter.POST("", orderApi.CreateOrder) // 创建订单
|
||||
appRouter.POST("/wechat/pay", orderApi.PayOrder) // 微信支付订单
|
||||
appRouter.GET("/list", orderApi.AppGetOrderList) // 获取订单列表
|
||||
appRouter.GET(":id", orderApi.GetOrderDetail) // 获取订单详情
|
||||
appRouter.POST("/balance/pay", orderApi.BalancePay) // 余额支付
|
||||
appRouter.GET("/pay_methods", orderApi.GetPayMethods) // 获取支付方式列表
|
||||
}
|
||||
{
|
||||
publicRouter.POST("/notify", orderApi.NotifyOrder) // 微信支付回调通知
|
||||
publicRouter.POST("/notify", orderApi.NotifyOrder) // 微信支付回调通知
|
||||
publicRouter.GET("/shenqi/notify", orderApi.ShenqiPayNotify) // 神奇支付回调通知(兼容旧配置)
|
||||
publicRouter.GET("/shenqi/notify/:code", orderApi.ShenqiPayNotify) // 神奇支付回调通知(数据库配置)
|
||||
}
|
||||
{
|
||||
systeamRouter.GET("/list", orderApi.GetOrderList) // 获取订单列表
|
||||
|
||||
Reference in New Issue
Block a user