This commit is contained in:
parent
95ef64760d
commit
22b28535a8
|
@ -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
|
||||
|
|
|
@ -241,15 +241,6 @@ func isWithdrawFreeze(mid int64) bool {
|
|||
return WithdrawFreezeMidMap[mid]
|
||||
}
|
||||
|
||||
// 任意额度提现
|
||||
var WithdrawAnyDiasMap = map[int64]bool{
|
||||
74: true,
|
||||
}
|
||||
|
||||
func isWithdrawAnyDiasEnable(mid int64) bool {
|
||||
return WithdrawAnyDiasMap[mid]
|
||||
}
|
||||
|
||||
// 提现发送验证码
|
||||
func WithdrawSendVerifycode(ctx *gin.Context) {
|
||||
req := ctx.MustGet("client_req").(*vasproto.WithdrawSendVerifycodeReq)
|
||||
|
@ -279,7 +270,7 @@ 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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
||||
// 更改状态
|
||||
|
|
Loading…
Reference in New Issue