1
This commit is contained in:
parent
cbda367a33
commit
8f32dc45b3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user