1
This commit is contained in:
parent
b9762c39e2
commit
cf5c9335de
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user