This commit is contained in:
lwl0608 2024-05-11 00:04:34 +08:00
commit 8035970300
3 changed files with 12 additions and 2 deletions

View File

@ -120,6 +120,15 @@ type WithdrawApplyData struct {
TransferResp *alipay.FundTransUniTransferResponse `json:"transfer_resp"` TransferResp *alipay.FundTransUniTransferResponse `json:"transfer_resp"`
} }
// 任意额度提现
var WithdrawAnyDiasMap = map[int64]bool{
74: true,
}
func IsWithdrawAnyDiasEnable(mid int64) bool {
return WithdrawAnyDiasMap[mid]
}
// 空间收银台 // 空间收银台
type ZoneGetCashierReq struct { type ZoneGetCashierReq struct {
base.BaseRequest base.BaseRequest

View File

@ -279,7 +279,8 @@ func WithdrawApply(ctx *gin.Context) {
ReplyErrorMsg(ctx, "最低提现金额不能小于200元") ReplyErrorMsg(ctx, "最低提现金额不能小于200元")
return return
} }
if !isWithdrawAnyDiasEnable(req.Mid) && req.Diamonds > 20000 {
if !vasproto.IsWithdrawAnyDiasEnable(req.Mid) && req.Diamonds > 20000 {
ReplyErrorMsg(ctx, "最大提现金额不能大于2000元") ReplyErrorMsg(ctx, "最大提现金额不能大于2000元")
return return
} }

View File

@ -1564,7 +1564,7 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t
} }
// 2000元以下直接操作 // 2000元以下直接操作
if money <= 200000 { if money <= 200000 || vasproto.IsWithdrawAnyDiasEnable(req.Mid) {
alipayCli := alipaycli.GetAlipayClientByAppId(alipaycli.AppIdXinYiDaoLe) alipayCli := alipaycli.GetAlipayClientByAppId(alipaycli.AppIdXinYiDaoLe)
// 更改状态 // 更改状态