diff --git a/app/http/entities/front/pay.go b/app/http/entities/front/pay.go index 9431e39..bfe8cb6 100644 --- a/app/http/entities/front/pay.go +++ b/app/http/entities/front/pay.go @@ -32,10 +32,14 @@ type PayReqs struct { } type RefundReqs struct { - PayCommonReqBody + AppId int64 `json:"app_id" validate:"required"` + Timestamp int64 `json:"timestamp" validate:"required"` + Amount int `json:"amount" validate:"required" label:"支付金额,单位分"` + PayChannelId int64 `json:"pay_channel_id" label:"支付渠道"` RefundOutTradeNo string `json:"refund_out_trade_no" label:"需要退款的外侧商户订单号"` RefundOrderId string `json:"refundOrder_id" label:"需要退款的平台订单号"` OutTradeNo string `json:"out_trade_no" validate:"required" label:"外侧商户订单号"` + Desc string `json:"desc" validate:"max=100" label:"商品描述"` } type PayUrlResp struct { diff --git a/app/services/thirdpay/pay.go b/app/services/thirdpay/pay.go index fccf9f5..cbbeb18 100644 --- a/app/services/thirdpay/pay.go +++ b/app/services/thirdpay/pay.go @@ -55,11 +55,11 @@ func ThirdPayRefundCheck(ctx context.Context, refundReq *front.RefundReqs, appCh } copier.Copy(&req, refundReq) check = thirdpay.NewPayCheck(&ctx, &req, appCheck, ip) - // 校验表单 - check.CheckPayInfo() - if check.CheckCode != errorcode.Success { - return check, check.CheckCode - } + //// 校验表单 + //check.CheckPayInfo() + //if check.CheckCode != errorcode.Success { + // return check, check.CheckCode + //} check.CheckOrderRefund() return check, check.CheckCode }