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 return
} }
if user.Score < int64(itemMeta.GetPrice()) { if user.Score < int64(itemMeta.GetPrice()) {
f5.RspErr(c, 500, "config error") f5.RspErr(c, 1, "score not enough")
return return
} }
if err := user.DecScore(itemMeta.GetPrice()); err != nil { if err := user.DecScore(itemMeta.GetPrice()); err != nil {