1
This commit is contained in:
parent
398b6f5aa8
commit
2089437778
@ -76,5 +76,9 @@ func (this *ShopApi) Buy(c *gin.Context) {
|
||||
f5.RspErr(c, 500, "config error")
|
||||
return
|
||||
}
|
||||
if err := user.DecScore(itemMeta.GetPrice()); err != nil {
|
||||
f5.RspErr(c, 500, "server internal error5")
|
||||
return
|
||||
}
|
||||
c.JSON(200, rspObj)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user