This commit is contained in:
aozhiwei 2024-11-11 17:05:09 +08:00
parent cbda367a33
commit 8f32dc45b3

View File

@ -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