Commit 1e4ae576ca0a41a7147abb7f215e0146bb9a3e53
1 parent
d82731eb
Exists in
master
提交
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/logic.go
| @@ -215,7 +215,10 @@ func HandlerUploadlevel(w http.ResponseWriter, data string, uuid int) { | @@ -215,7 +215,10 @@ func HandlerUploadlevel(w http.ResponseWriter, data string, uuid int) { | ||
| 215 | break | 215 | break |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | - uinfo.PassLevel = rdata.Level | 218 | + if rdata.Level > uinfo.PassLevel { |
| 219 | + uinfo.PassLevel = rdata.Level | ||
| 220 | + } | ||
| 221 | + | ||
| 219 | 222 | ||
| 220 | SaveUserInfo(uinfo,uniqueuuid) | 223 | SaveUserInfo(uinfo,uniqueuuid) |
| 221 | 224 |