fix
This commit is contained in:
parent
81d3966130
commit
8425a19b39
|
@ -18,8 +18,8 @@ type CreateOrderReq struct {
|
||||||
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" validate:"required"`
|
NotifyUrl string `json:"notify_url"`
|
||||||
ExtendParameter string `json:"extend_parameter" validate:"required"`
|
ExtendParameter string `json:"extend_parameter"`
|
||||||
|
|
||||||
MerchantId int64 `json:"merchant_id" validate:"required"`
|
MerchantId int64 `json:"merchant_id" validate:"required"`
|
||||||
TimeStamp int64 `json:"time_stamp" validate:"required"`
|
TimeStamp int64 `json:"time_stamp" validate:"required"`
|
||||||
|
|
|
@ -8,6 +8,7 @@ import (
|
||||||
|
|
||||||
func VerifyIp() gin.HandlerFunc {
|
func VerifyIp() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
|
return
|
||||||
// 读取请求体
|
// 读取请求体
|
||||||
reqIp := c.ClientIP()
|
reqIp := c.ClientIP()
|
||||||
//验证商户是否存在
|
//验证商户是否存在
|
||||||
|
|
Loading…
Reference in New Issue