Commit e7236e866d8127a540438a1276581bd30c1d8b7c

Authored by 陆恒
1 parent 97dcd20c
Exists in ver2.3.0 and in 1 other branch ver2.2.8

提交

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/HttpServer/logic/function.go
... ... @@ -475,7 +475,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error {
475 475 for _, val := range jsonconf.GetJsonConf().WithDrawConfig {
476 476  
477 477 isin, idx := u.IsInWithList(val.Money)
478   - if isin && idx > 0 && idx < len(u.WithDraw.Cashdata) {
  478 + if isin && idx >= 0 && idx < len(u.WithDraw.Cashdata) {
479 479 //已经有了的话更新一下配置
480 480 u.WithDraw.Cashdata[idx].Day = val.Day
481 481 u.WithDraw.Cashdata[idx].Limitlv = val.Level
... ... @@ -516,7 +516,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error {
516 516 for _, val := range jsonconf.GetJsonConf().ActiveWithdrawConfig {
517 517  
518 518 isin, idx := u.IsInSpeaialWithList(val.Money)
519   - if isin && idx > 0 && idx < len(u.WithDraw.SpecialCashdata) {
  519 + if isin && idx >= 0 && idx < len(u.WithDraw.SpecialCashdata) {
520 520 //已经有了的话更新一下配置
521 521 u.WithDraw.SpecialCashdata[idx].Day = val.Day
522 522 u.WithDraw.SpecialCashdata[idx].Limitlv = val.Level
... ...