forked from rDrama/rDrama
fsddfs
parent
6b4a080be0
commit
a75929a96f
|
@ -417,7 +417,7 @@ def buy(v, award):
|
||||||
|
|
||||||
if request.values.get("mb"):
|
if request.values.get("mb"):
|
||||||
if v.procoins < price: return {"error": "Not enough marseybux."}, 400
|
if v.procoins < price: return {"error": "Not enough marseybux."}, 400
|
||||||
if award != "grass": return {"error": "You can't buy the grass award with marseybux."}, 403
|
if award == "grass": return {"error": "You can't buy the grass award with marseybux."}, 403
|
||||||
v.procoins -= price
|
v.procoins -= price
|
||||||
else:
|
else:
|
||||||
if v.coins < price: return {"error": "Not enough coins."}, 400
|
if v.coins < price: return {"error": "Not enough coins."}, 400
|
||||||
|
|
Loading…
Reference in New Issue