diff --git a/api/proto/vas/proto/vas.go b/api/proto/vas/proto/vas.go index c659122d..21cfc098 100644 --- a/api/proto/vas/proto/vas.go +++ b/api/proto/vas/proto/vas.go @@ -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"` +} diff --git a/app/mix/controller/vas.go b/app/mix/controller/vas.go index 8a386546..6cfed17f 100644 --- a/app/mix/controller/vas.go +++ b/app/mix/controller/vas.go @@ -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 } diff --git a/dbstruct/vas.sql b/dbstruct/vas.sql index 6bcc241c..954c0f10 100644 --- a/dbstruct/vas.sql +++ b/dbstruct/vas.sql @@ -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` (