Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/HibiKier/zhenxun_bot into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier committed Oct 16, 2024
2 parents 792bcaa + 8531c07 commit f7e8e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zhenxun/builtin_plugins/hooks/_auth_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ async def auth_cost(
返回:
int: 需要消耗的金币
"""
if user.gold < plugin.cost_gold:
if user.gold < plugin.cost_gold and plugin.cost_gold > 0:
"""插件消耗金币不足"""
try:
await MessageUtils.build_message(
Expand Down

0 comments on commit f7e8e10

Please sign in to comment.