This commit is contained in:
aozhiwei 2024-11-29 17:27:40 +08:00
parent b9762c39e2
commit cf5c9335de

View File

@ -73,7 +73,7 @@ func (this *ShopApi) Buy(c *gin.Context) {
return
}
if user.Score < int64(itemMeta.GetPrice()) {
f5.RspErr(c, 500, "config error")
f5.RspErr(c, 1, "score not enough")
return
}
if err := user.DecScore(itemMeta.GetPrice()); err != nil {