From f53917fe48b5573e31557349eddc621936efca57 Mon Sep 17 00:00:00 2001 From: mofangmin Date: Mon, 19 Aug 2024 14:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=A2=9E=E5=8A=A0=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=B8=A0=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/backend/handler/examine/examine.go | 14 +++++++++++++- modules/backend/values/examine.go | 12 +++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/modules/backend/handler/examine/examine.go b/modules/backend/handler/examine/examine.go index b993b3b..2dfe52a 100644 --- a/modules/backend/handler/examine/examine.go +++ b/modules/backend/handler/examine/examine.go @@ -106,7 +106,15 @@ func WithdrawList(c *gin.Context) { a.Code = values.CodeRetry return } - a.Data = values.WithdrawListResp{List: WithdrawOrderArr, Count: count} + payList := map[int]string{ + 18: "GrePay", + 27: "MLPay", + 39: "GoPay", + 42: "MoonPay", + 43: "PayPlus", + 44: "LuckinPay", + } + a.Data = values.WithdrawListResp{List: WithdrawOrderArr, Count: count, PayList: payList} } func WithdrawExamine(c *gin.Context) { @@ -147,6 +155,10 @@ func WithdrawExamine(c *gin.Context) { if len(req.Remark) > 0 { u["remarks"] = req.Remark } + if req.PayChannel != 0 { + u["pay_channel"] = req.PayChannel + u["upi"] = req.PayChannel + } // 审核通过,发起提现,会在pay模块扫描提交 if req.Opt == 1 { u["status"] = common.StatusROrderWaitting diff --git a/modules/backend/values/examine.go b/modules/backend/values/examine.go index e906ad8..906d2d5 100644 --- a/modules/backend/values/examine.go +++ b/modules/backend/values/examine.go @@ -33,8 +33,9 @@ type WithdrawListReq struct { // WithdrawListResp 退出列表返回 type WithdrawListResp struct { - List []WithdrawInfo - Count int64 + List []WithdrawInfo + PayList map[int]string + Count int64 } // WithdrawInfo退出信息 @@ -89,9 +90,10 @@ type WithdrawOrder struct { // Opt 审核状态 1 通过 2拒绝 3挂起 // Remark 备注 type WithdrawExamineReq struct { - ID int `json:"ID" binding:"required"` - Opt int `json:"Opt" binding:"required"` - Remark string `json:"Remark"` + ID int `json:"ID" binding:"required"` + Opt int `json:"Opt" binding:"required"` + PayChannel int `json:"PayChannel"` // 支付渠道 + Remark string `json:"Remark"` } type TpDataReq struct {