From e7236e866d8127a540438a1276581bd30c1d8b7c Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Wed, 8 Jul 2020 10:47:44 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/function.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 6152c63..2989407 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -475,7 +475,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { for _, val := range jsonconf.GetJsonConf().WithDrawConfig { isin, idx := u.IsInWithList(val.Money) - if isin && idx > 0 && idx < len(u.WithDraw.Cashdata) { + if isin && idx >= 0 && idx < len(u.WithDraw.Cashdata) { //已经有了的话更新一下配置 u.WithDraw.Cashdata[idx].Day = val.Day u.WithDraw.Cashdata[idx].Limitlv = val.Level @@ -516,7 +516,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { for _, val := range jsonconf.GetJsonConf().ActiveWithdrawConfig { isin, idx := u.IsInSpeaialWithList(val.Money) - if isin && idx > 0 && idx < len(u.WithDraw.SpecialCashdata) { + if isin && idx >= 0 && idx < len(u.WithDraw.SpecialCashdata) { //已经有了的话更新一下配置 u.WithDraw.SpecialCashdata[idx].Day = val.Day u.WithDraw.SpecialCashdata[idx].Limitlv = val.Level -- libgit2 0.21.0