bingo 玩家等级校验处理
This commit is contained in:
parent
87c7b5e4a3
commit
09d5c01902
@ -920,6 +920,13 @@ func (this *User) BingoSetUserLv(session comm.IUserSession, lv int32) error {
|
||||
if lv <= 0 {
|
||||
return comm.NewCustomError(pb.ErrorCode_ReqParameterError)
|
||||
}
|
||||
if conf := this.configure.GetPlayerlvConfList(); len(conf) > 0 {
|
||||
maxlv := conf[len(this.configure.GetPlayerlvConfList())-1].Lv
|
||||
if lv > maxlv {
|
||||
lv = maxlv
|
||||
}
|
||||
}
|
||||
|
||||
update := map[string]interface{}{
|
||||
"lv": lv,
|
||||
"exp": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user