diff --git a/api/proto/vas/proto/vas.go b/api/proto/vas/proto/vas.go index 21cfc098..f282d539 100644 --- a/api/proto/vas/proto/vas.go +++ b/api/proto/vas/proto/vas.go @@ -120,6 +120,15 @@ type WithdrawApplyData struct { TransferResp *alipay.FundTransUniTransferResponse `json:"transfer_resp"` } +// 任意额度提现 +var WithdrawAnyDiasMap = map[int64]bool{ + 74: true, +} + +func IsWithdrawAnyDiasEnable(mid int64) bool { + return WithdrawAnyDiasMap[mid] +} + // 空间收银台 type ZoneGetCashierReq struct { base.BaseRequest diff --git a/app/mix/controller/vas.go b/app/mix/controller/vas.go index 6cfed17f..edcbe5a2 100644 --- a/app/mix/controller/vas.go +++ b/app/mix/controller/vas.go @@ -279,7 +279,8 @@ func WithdrawApply(ctx *gin.Context) { ReplyErrorMsg(ctx, "最低提现金额不能小于200元") return } - if !isWithdrawAnyDiasEnable(req.Mid) && req.Diamonds > 20000 { + + if !vasproto.IsWithdrawAnyDiasEnable(req.Mid) && req.Diamonds > 20000 { ReplyErrorMsg(ctx, "最大提现金额不能大于2000元") return } diff --git a/app/mix/service/logic/vas.go b/app/mix/service/logic/vas.go index 9d9fa2a6..b161e623 100644 --- a/app/mix/service/logic/vas.go +++ b/app/mix/service/logic/vas.go @@ -1564,7 +1564,7 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t } // 2000元以下直接操作 - if money <= 200000 { + if money <= 200000 || vasproto.IsWithdrawAnyDiasEnable(req.Mid) { alipayCli := alipaycli.GetAlipayClientByAppId(alipaycli.AppIdXinYiDaoLe) // 更改状态