1
This commit is contained in:
parent
7697c74c54
commit
10c086f082
@ -72,5 +72,9 @@ func (this *ShopApi) Buy(c *gin.Context) {
|
||||
f5.RspErr(c, 500, "config error")
|
||||
return
|
||||
}
|
||||
if user.Score < int64(itemMeta.GetPrice()) {
|
||||
f5.RspErr(c, 500, "config error")
|
||||
return
|
||||
}
|
||||
c.JSON(200, rspObj)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user