Merge branch 'dev-lwl/fix' into test

This commit is contained in:
lwl0608 2024-05-06 23:28:29 +08:00
commit 5542905db3
1 changed files with 17 additions and 1 deletions

View File

@ -232,9 +232,22 @@ func WithdrawPage(ctx *gin.Context) {
ReplyOk(ctx, data)
}
var WithdrawFreezeMidMap = map[int64]bool{
16311: true,
159: true,
}
func isWithdrawFreeze(mid int64) bool {
return WithdrawFreezeMidMap[mid]
}
// 提现发送验证码
func WithdrawSendVerifycode(ctx *gin.Context) {
req := ctx.MustGet("client_req").(*vasproto.WithdrawSendVerifycodeReq)
if isWithdrawFreeze(req.Mid) {
ReplyErrorMsg(ctx, "当前提现功能已冻结")
return
}
ec := service.DefaultService.WithdrawSendVerifycode(ctx, req)
if ec != errcode.ErrCodeVasSrvOk {
logger.Error("WithdrawSendVerifycode fail, req: %v, ec: %v", util.ToJson(req), ec)
@ -248,8 +261,11 @@ func WithdrawSendVerifycode(ctx *gin.Context) {
func WithdrawApply(ctx *gin.Context) {
//ReplyErrorMsg(ctx, "提现功能维护中请72小时后再试")
//return
req := ctx.MustGet("client_req").(*vasproto.WithdrawApplyReq)
if isWithdrawFreeze(req.Mid) {
ReplyErrorMsg(ctx, "当前提现功能已冻结")
return
}
if req.Diamonds < 2000 {
ReplyErrorMsg(ctx, "最低提现金额不能小于200元")
return