isWithdrawAnyDiasEnable
This commit is contained in:
parent
828447ed3f
commit
95ef64760d
|
@ -265,3 +265,23 @@ type ZoneExitResp struct {
|
|||
base.BaseResponse
|
||||
Data *ZoneFreeJoinData `json:"data"`
|
||||
}
|
||||
|
||||
// 动态购买列表
|
||||
type ZoneMomentOrderListReq struct {
|
||||
base.BaseRequest
|
||||
MomentId int64 `json:"moment_id"`
|
||||
Offset int `json:"offset"`
|
||||
Limit int `json:"limit"`
|
||||
}
|
||||
|
||||
type ZoneMomentOrderVO struct {
|
||||
Account *dbstruct.Account `json:"account"`
|
||||
BuyTime int64 `json:"buy_time"` // 购买时间
|
||||
OrderId string `json:"order_id"` // 订单id
|
||||
}
|
||||
|
||||
type ZoneMomentOrderListData struct {
|
||||
List []*ZoneMomentOrderVO `json:"list"`
|
||||
Offset int `json:"offset"`
|
||||
More int `json:"more"`
|
||||
}
|
||||
|
|
|
@ -241,6 +241,15 @@ 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)
|
||||
|
@ -270,7 +279,7 @@ func WithdrawApply(ctx *gin.Context) {
|
|||
ReplyErrorMsg(ctx, "最低提现金额不能小于200元")
|
||||
return
|
||||
}
|
||||
if req.Diamonds > 20000 {
|
||||
if !isWithdrawAnyDiasEnable(req.Mid) && req.Diamonds > 20000 {
|
||||
ReplyErrorMsg(ctx, "最大提现金额不能大于2000元")
|
||||
return
|
||||
}
|
||||
|
|
|
@ -31,6 +31,9 @@ CREATE TABLE `vas_order`
|
|||
CREATE INDEX out_order_id ON vas_order (out_order_id);
|
||||
CREATE INDEX ct_status ON vas_order (ct, order_status);
|
||||
CREATE INDEX ix_ct_productid ON vas_order (ct, product_id);
|
||||
CREATE INDEX ix_oid1 ON vas_order (oid1);
|
||||
CREATE INDEX ix_oid2 ON vas_order (oid2);
|
||||
CREATE INDEX ix_oid3 ON vas_order (oid3);
|
||||
|
||||
CREATE TABLE `vas_wallet`
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue