diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 98e2e64..f88e091 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -353,6 +353,7 @@ type UserData struct { UpLvCostTime int //上一个等级升级时间 UpLvCostTimeSec int //上一个等级升级的时间点时刻 ReadNum int //玩家微转发阅读量 + GetCashCnt int //当天提现次数 WithDraw WithDrawInfo //提现记录信息 Task TaskInfo //玩家任务完成相关信息 Achieve AchieveMentInfo //玩家成就完成相关数据 diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 6f9d823..f42fd21 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -668,6 +668,7 @@ func (u *UserData) HandlePassDay(uuid int, channel string) { u.WatchAddsTime = WATCH_ADD_DAY_LIMIT //todo 重置任务相关的数据 u.GetFromGuanCnt = 0 + u.GetCashCnt = 0 u.Task.GetGuanGold = 0 u.Task.GetRedbagCnt = 0 diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 46db0a1..f9cb830 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -179,6 +179,14 @@ func HandlerGetcash(w http.ResponseWriter, data string, uuid int) { } } + //如果是2.2.7版本开启提现次数限制 + if rdata.Ver == "2.2.7" && uinfo.GetCashCnt > 0 { + logger.Error("HandlerGetcash GetCashCnt err=%v", err) + resp.Message = "当天已经提现过了,请明天再来" + resp.Code = ERROR_PRENOTFINISH + break + } + //2.2.5版本开启自动审核 checkcoin := 2 if rdata.Ver == "2.2.5" { @@ -209,6 +217,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uuid int) { break }*/ + uinfo.GetCashCnt++ if info.Isnew == 1 { uinfo.WithDraw.Cashdata[index].Isnew = 0 } -- libgit2 0.21.0