This commit is contained in:
duyu 2024-07-29 16:36:41 +08:00
parent b3cce0de58
commit 0ff950cf66
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ func CreateOrder(c *gin.Context) {
OutTradeNo: request.OutTradeNo,
ProductId: request.ProductId,
RechargeAccount: request.RechargeAccount,
AccountType: request.AccountType,
AccountType: *request.AccountType,
Number: request.Number,
NotifyUrl: request.NotifyUrl,
ExtendParameter: request.ExtendParameter,

View File

@ -16,7 +16,7 @@ type CreateOrderReq struct {
OutTradeNo string `json:"out_trade_no" validate:"required"`
ProductId int64 `json:"product_id" validate:"required"`
RechargeAccount string `json:"recharge_account" validate:"required"`
AccountType int64 `json:"account_type" validate:"required"`
AccountType *int64 `json:"account_type" validate:"required"`
Number int64 `json:"number" validate:"required"`
NotifyUrl string `json:"notify_url"`
ExtendParameter string `json:"extend_parameter"`

View File

@ -100,7 +100,7 @@ func RegisterRoute(router *gin.Engine) {
}
zhilian := router.Group("/zhilian")
zhilian.Use(middlewares.VerifySign())
// zhilian.Use(middlewares.VerifySign())
zhilian.Use(middlewares.RequestLog())
{
zhilian.POST("/recharge/order", zlCon.CreateOrder)