Commit 6a83e63cd4bf7b4f26384f774ce1942522a08dff

Authored by 陆恒
1 parent 4b319302
Exists in master

提交

src/HttpServer/logic/datadef.go
... ... @@ -364,7 +364,7 @@ type PutWareHouseResp struct {
364 364 }
365 365  
366 366 type TakeWareHouseReq struct {
367   - CatId int `json:"catId"`
  367 + CatId string `json:"catId"`
368 368 }
369 369 type TakeWareHouseResp struct {
370 370 Code int `json:"code"`
... ...
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
... ...