From 24160c7897ad1def1ae0ccbd35d6d4289c1fbbf9 Mon Sep 17 00:00:00 2001 From: Feliciano Long Date: Wed, 16 Oct 2024 10:54:08 +0800 Subject: [PATCH] fix: when user gold is negative, free plugins is also blocked --- zhenxun/builtin_plugins/hooks/_auth_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/hooks/_auth_checker.py b/zhenxun/builtin_plugins/hooks/_auth_checker.py index 4b0b757b..cdc59494 100644 --- a/zhenxun/builtin_plugins/hooks/_auth_checker.py +++ b/zhenxun/builtin_plugins/hooks/_auth_checker.py @@ -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(