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
| @@ -364,7 +364,7 @@ type PutWareHouseResp struct { | @@ -364,7 +364,7 @@ type PutWareHouseResp struct { | ||
| 364 | } | 364 | } |
| 365 | 365 | ||
| 366 | type TakeWareHouseReq struct { | 366 | type TakeWareHouseReq struct { |
| 367 | - CatId int `json:"catId"` | 367 | + CatId string `json:"catId"` |
| 368 | } | 368 | } |
| 369 | type TakeWareHouseResp struct { | 369 | type TakeWareHouseResp struct { |
| 370 | Code int `json:"code"` | 370 | Code int `json:"code"` |
src/HttpServer/logic/logic.go
| @@ -1415,7 +1415,8 @@ func HandlerTakeCatoutfromWareHouse(w http.ResponseWriter, data string, uuid int | @@ -1415,7 +1415,8 @@ func HandlerTakeCatoutfromWareHouse(w http.ResponseWriter, data string, uuid int | ||
| 1415 | resp.Message = "get userinfo failed" | 1415 | resp.Message = "get userinfo failed" |
| 1416 | break | 1416 | break |
| 1417 | } | 1417 | } |
| 1418 | - wpos := udata.GetWarePosById(rdata.CatId) | 1418 | + cid, _ := strconv.Atoi(rdata.CatId) |
| 1419 | + wpos := udata.GetWarePosById(cid) | ||
| 1419 | if wpos == -1 { | 1420 | if wpos == -1 { |
| 1420 | logger.Error("HandlerTakeCatoutfromWareHouse wpos failed=%v", err) | 1421 | logger.Error("HandlerTakeCatoutfromWareHouse wpos failed=%v", err) |
| 1421 | resp.Code = 1 | 1422 | resp.Code = 1 |