后台增加切换渠道

fix/release
mofangmin 1 year ago
parent 48f6ec0063
commit f53917fe48
  1. 14
      modules/backend/handler/examine/examine.go
  2. 12
      modules/backend/values/examine.go

@ -106,7 +106,15 @@ func WithdrawList(c *gin.Context) {
a.Code = values.CodeRetry a.Code = values.CodeRetry
return 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) { func WithdrawExamine(c *gin.Context) {
@ -147,6 +155,10 @@ func WithdrawExamine(c *gin.Context) {
if len(req.Remark) > 0 { if len(req.Remark) > 0 {
u["remarks"] = req.Remark u["remarks"] = req.Remark
} }
if req.PayChannel != 0 {
u["pay_channel"] = req.PayChannel
u["upi"] = req.PayChannel
}
// 审核通过,发起提现,会在pay模块扫描提交 // 审核通过,发起提现,会在pay模块扫描提交
if req.Opt == 1 { if req.Opt == 1 {
u["status"] = common.StatusROrderWaitting u["status"] = common.StatusROrderWaitting

@ -33,8 +33,9 @@ type WithdrawListReq struct {
// WithdrawListResp 退出列表返回 // WithdrawListResp 退出列表返回
type WithdrawListResp struct { type WithdrawListResp struct {
List []WithdrawInfo List []WithdrawInfo
Count int64 PayList map[int]string
Count int64
} }
// WithdrawInfo退出信息 // WithdrawInfo退出信息
@ -89,9 +90,10 @@ type WithdrawOrder struct {
// Opt 审核状态 1 通过 2拒绝 3挂起 // Opt 审核状态 1 通过 2拒绝 3挂起
// Remark 备注 // Remark 备注
type WithdrawExamineReq struct { type WithdrawExamineReq struct {
ID int `json:"ID" binding:"required"` ID int `json:"ID" binding:"required"`
Opt int `json:"Opt" binding:"required"` Opt int `json:"Opt" binding:"required"`
Remark string `json:"Remark"` PayChannel int `json:"PayChannel"` // 支付渠道
Remark string `json:"Remark"`
} }
type TpDataReq struct { type TpDataReq struct {

Loading…
Cancel
Save