This commit is contained in:
aozhiwei 2024-11-11 17:15:24 +08:00
parent 7697c74c54
commit 10c086f082

View File

@ -72,5 +72,9 @@ func (this *ShopApi) Buy(c *gin.Context) {
f5.RspErr(c, 500, "config error") f5.RspErr(c, 500, "config error")
return return
} }
if user.Score < int64(itemMeta.GetPrice()) {
f5.RspErr(c, 500, "config error")
return
}
c.JSON(200, rspObj) c.JSON(200, rspObj)
} }