Commit 9e6f631db4d6ef85d23de7b14b618a910787df1d

Authored by 陆恒
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 411  
412 412 func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) {
413 413 SetHeader(w)
  414 + Maplock.Lock()
  415 + defer Maplock.Unlock()
414 416 var resp UserLoginResp
415 417 resp.Code = 0
416 418 resp.Message = "success"
... ...