fix 0
This commit is contained in:
parent
b3cce0de58
commit
0ff950cf66
|
@ -58,7 +58,7 @@ func CreateOrder(c *gin.Context) {
|
||||||
OutTradeNo: request.OutTradeNo,
|
OutTradeNo: request.OutTradeNo,
|
||||||
ProductId: request.ProductId,
|
ProductId: request.ProductId,
|
||||||
RechargeAccount: request.RechargeAccount,
|
RechargeAccount: request.RechargeAccount,
|
||||||
AccountType: request.AccountType,
|
AccountType: *request.AccountType,
|
||||||
Number: request.Number,
|
Number: request.Number,
|
||||||
NotifyUrl: request.NotifyUrl,
|
NotifyUrl: request.NotifyUrl,
|
||||||
ExtendParameter: request.ExtendParameter,
|
ExtendParameter: request.ExtendParameter,
|
||||||
|
|
|
@ -16,7 +16,7 @@ type CreateOrderReq struct {
|
||||||
OutTradeNo string `json:"out_trade_no" validate:"required"`
|
OutTradeNo string `json:"out_trade_no" validate:"required"`
|
||||||
ProductId int64 `json:"product_id" validate:"required"`
|
ProductId int64 `json:"product_id" validate:"required"`
|
||||||
RechargeAccount string `json:"recharge_account" 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"`
|
Number int64 `json:"number" validate:"required"`
|
||||||
NotifyUrl string `json:"notify_url"`
|
NotifyUrl string `json:"notify_url"`
|
||||||
ExtendParameter string `json:"extend_parameter"`
|
ExtendParameter string `json:"extend_parameter"`
|
||||||
|
|
|
@ -100,7 +100,7 @@ func RegisterRoute(router *gin.Engine) {
|
||||||
}
|
}
|
||||||
|
|
||||||
zhilian := router.Group("/zhilian")
|
zhilian := router.Group("/zhilian")
|
||||||
zhilian.Use(middlewares.VerifySign())
|
// zhilian.Use(middlewares.VerifySign())
|
||||||
zhilian.Use(middlewares.RequestLog())
|
zhilian.Use(middlewares.RequestLog())
|
||||||
{
|
{
|
||||||
zhilian.POST("/recharge/order", zlCon.CreateOrder)
|
zhilian.POST("/recharge/order", zlCon.CreateOrder)
|
||||||
|
|
Loading…
Reference in New Issue