Commit 6a83e63cd4bf7b4f26384f774ce1942522a08dff
1 parent
4b319302
Exists in
master
提交
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/datadef.go
src/HttpServer/logic/logic.go
| ... | ... | @@ -1415,7 +1415,8 @@ func HandlerTakeCatoutfromWareHouse(w http.ResponseWriter, data string, uuid int |
| 1415 | 1415 | resp.Message = "get userinfo failed" |
| 1416 | 1416 | break |
| 1417 | 1417 | } |
| 1418 | - wpos := udata.GetWarePosById(rdata.CatId) | |
| 1418 | + cid, _ := strconv.Atoi(rdata.CatId) | |
| 1419 | + wpos := udata.GetWarePosById(cid) | |
| 1419 | 1420 | if wpos == -1 { |
| 1420 | 1421 | logger.Error("HandlerTakeCatoutfromWareHouse wpos failed=%v", err) |
| 1421 | 1422 | resp.Code = 1 | ... | ... |