Commit 9e6f631db4d6ef85d23de7b14b618a910787df1d
1 parent
d1c2280b
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -411,6 +411,8 @@ func HandlerTestaddCat(w http.ResponseWriter, data string, uuid int) { | @@ -411,6 +411,8 @@ func HandlerTestaddCat(w http.ResponseWriter, data string, uuid int) { | ||
411 | 411 | ||
412 | func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { | 412 | func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { |
413 | SetHeader(w) | 413 | SetHeader(w) |
414 | + Maplock.Lock() | ||
415 | + defer Maplock.Unlock() | ||
414 | var resp UserLoginResp | 416 | var resp UserLoginResp |
415 | resp.Code = 0 | 417 | resp.Code = 0 |
416 | resp.Message = "success" | 418 | resp.Message = "success" |