mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
fix: when user gold is negative, free plugins is also blocked
This commit is contained in:
parent
fe1634eb2d
commit
24160c7897
@ -501,7 +501,7 @@ class AuthChecker:
|
||||
返回:
|
||||
int: 需要消耗的金币
|
||||
"""
|
||||
if user.gold < plugin.cost_gold:
|
||||
if user.gold < plugin.cost_gold and plugin.cost_gold > 0:
|
||||
"""插件消耗金币不足"""
|
||||
try:
|
||||
await MessageUtils.build_message(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user