Commit 7dcada25865ba37e229121bd96d233bc2fc3f4af
1 parent
2ec5d5f3
Exists in
master
提交
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
src/HttpServer/logic/function.go
| @@ -153,7 +153,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | @@ -153,7 +153,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | ||
| 153 | } else { | 153 | } else { |
| 154 | tmp.Preisfind = 0 | 154 | tmp.Preisfind = 0 |
| 155 | } | 155 | } |
| 156 | - tmp.Day = val.Day | 156 | + tmp.Logindaylimit = val.Day |
| 157 | initdata.WithDraw.Cashdata = append(initdata.WithDraw.Cashdata, tmp) | 157 | initdata.WithDraw.Cashdata = append(initdata.WithDraw.Cashdata, tmp) |
| 158 | } | 158 | } |
| 159 | //处理活跃提现的部分 | 159 | //处理活跃提现的部分 |
| @@ -170,7 +170,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | @@ -170,7 +170,7 @@ func InitUserInfo(data *UserLoginReq, resp *UserLoginResp, uuid int, uniqueuid s | ||
| 170 | //没有前置条件 | 170 | //没有前置条件 |
| 171 | tmp.Preisfind = 1 | 171 | tmp.Preisfind = 1 |
| 172 | 172 | ||
| 173 | - tmp.Day = val.Day | 173 | + tmp.Logindaylimit = val.Day |
| 174 | initdata.WithDraw.SpecialCashdata = append(initdata.WithDraw.SpecialCashdata, tmp) | 174 | initdata.WithDraw.SpecialCashdata = append(initdata.WithDraw.SpecialCashdata, tmp) |
| 175 | } | 175 | } |
| 176 | 176 | ||
| @@ -493,7 +493,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | @@ -493,7 +493,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | ||
| 493 | isin, idx := u.IsInWithList(val.Money) | 493 | isin, idx := u.IsInWithList(val.Money) |
| 494 | if isin && idx >= 0 && idx < len(u.WithDraw.Cashdata) { | 494 | if isin && idx >= 0 && idx < len(u.WithDraw.Cashdata) { |
| 495 | //已经有了的话更新一下配置 | 495 | //已经有了的话更新一下配置 |
| 496 | - u.WithDraw.Cashdata[idx].Day = val.Day | 496 | + u.WithDraw.Cashdata[idx].Logindaylimit = val.Day |
| 497 | u.WithDraw.Cashdata[idx].Limitlv = val.Level | 497 | u.WithDraw.Cashdata[idx].Limitlv = val.Level |
| 498 | u.WithDraw.Cashdata[idx].Cnum = val.Money | 498 | u.WithDraw.Cashdata[idx].Cnum = val.Money |
| 499 | u.WithDraw.Cashdata[idx].Cid = val.Id | 499 | u.WithDraw.Cashdata[idx].Cid = val.Id |
| @@ -513,7 +513,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | @@ -513,7 +513,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | ||
| 513 | } else { | 513 | } else { |
| 514 | tmp.Preisfind = 0 | 514 | tmp.Preisfind = 0 |
| 515 | } | 515 | } |
| 516 | - tmp.Day = val.Day | 516 | + tmp.Logindaylimit = val.Day |
| 517 | u.WithDraw.Cashdata = append(u.WithDraw.Cashdata, tmp) | 517 | u.WithDraw.Cashdata = append(u.WithDraw.Cashdata, tmp) |
| 518 | } | 518 | } |
| 519 | 519 | ||
| @@ -551,7 +551,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | @@ -551,7 +551,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | ||
| 551 | isin, idx := u.IsInSpeaialWithList(val.Money) | 551 | isin, idx := u.IsInSpeaialWithList(val.Money) |
| 552 | if isin && idx >= 0 && idx < len(u.WithDraw.SpecialCashdata) { | 552 | if isin && idx >= 0 && idx < len(u.WithDraw.SpecialCashdata) { |
| 553 | //已经有了的话更新一下配置 | 553 | //已经有了的话更新一下配置 |
| 554 | - u.WithDraw.SpecialCashdata[idx].Day = val.Day | 554 | + u.WithDraw.SpecialCashdata[idx].Logindaylimit = val.Day |
| 555 | u.WithDraw.SpecialCashdata[idx].Limitlv = val.Level | 555 | u.WithDraw.SpecialCashdata[idx].Limitlv = val.Level |
| 556 | u.WithDraw.SpecialCashdata[idx].Cnum = val.Money | 556 | u.WithDraw.SpecialCashdata[idx].Cnum = val.Money |
| 557 | } else { | 557 | } else { |
| @@ -568,7 +568,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | @@ -568,7 +568,7 @@ func (u *UserData) ReInitWithDraw(uniqueuid string) error { | ||
| 568 | //没有前置条件 | 568 | //没有前置条件 |
| 569 | tmp.Preisfind = 1 | 569 | tmp.Preisfind = 1 |
| 570 | 570 | ||
| 571 | - tmp.Day = val.Day | 571 | + tmp.Logindaylimit = val.Day |
| 572 | u.WithDraw.SpecialCashdata = append(u.WithDraw.SpecialCashdata, tmp) | 572 | u.WithDraw.SpecialCashdata = append(u.WithDraw.SpecialCashdata, tmp) |
| 573 | } | 573 | } |
| 574 | 574 |
src/HttpServer/logic/logic.go
| @@ -141,7 +141,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uuid int) { | @@ -141,7 +141,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uuid int) { | ||
| 141 | break | 141 | break |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | - if uinfo.SumLoginDay < info.Day { | 144 | + if uinfo.SumLoginDay < info.Logindaylimit { |
| 145 | logger.Error("HandlerGetcash GetCashCnt err=%v", err) | 145 | logger.Error("HandlerGetcash GetCashCnt err=%v", err) |
| 146 | resp.Message = "累计登陆天数不足" | 146 | resp.Message = "累计登陆天数不足" |
| 147 | resp.Code = 7 | 147 | resp.Code = 7 |