diff --git a/server/wheelserver/api/v1/shop/shop.go b/server/wheelserver/api/v1/shop/shop.go index a534c10c..fdbb94f3 100644 --- a/server/wheelserver/api/v1/shop/shop.go +++ b/server/wheelserver/api/v1/shop/shop.go @@ -36,6 +36,13 @@ func (this *ShopApi) Goods(c *gin.Context) { } func (this *ShopApi) Buy(c *gin.Context) { + reqJson := struct { + ItemId int32 `json:"item_id"` + }{} + if err := c.ShouldBindJSON(&reqJson); err != nil { + f5.RspErr(c, 1, err.Error()) + return + } s := c.MustGet(constant.SESSION_KEY).(common.Session) if s == nil { return