From 1f262d0399ed037730a09be43281d545669fa8f2 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 9 Jun 2025 15:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95auth=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/decorator/plugin_decorators.py | 1 - utils/decorator/points_decorator.py | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/utils/decorator/plugin_decorators.py b/utils/decorator/plugin_decorators.py index 33da372..5ef6a84 100644 --- a/utils/decorator/plugin_decorators.py +++ b/utils/decorator/plugin_decorators.py @@ -8,7 +8,6 @@ from typing import Callable, Dict, Any, Tuple from db.stats_db import StatsDBOperator from db.connection import DBConnectionManager -from wechat_ipad import WechatAPIClient def plugin_stats_decorator(plugin_name: str) -> Callable: diff --git a/utils/decorator/points_decorator.py b/utils/decorator/points_decorator.py index a2f9ffa..1707ea1 100644 --- a/utils/decorator/points_decorator.py +++ b/utils/decorator/points_decorator.py @@ -206,15 +206,14 @@ def plugin_points_cost(points: int, description: str = None, feature_key: str = return False, "没有权限" # 检查是否开启了积分获取功能 - if (GroupBotManager.get_group_permission(roomid, - Feature.SIGNIN) == PermissionStatus.DISABLED - and GroupBotManager.get_group_permission( - roomid, Feature.TASK_GAME) == PermissionStatus.DISABLED): - return await func(self, message) + # if (GroupBotManager.get_group_permission(roomid, + # Feature.SIGNIN) == PermissionStatus.DISABLED + # and GroupBotManager.get_group_permission( + # roomid, Feature.TASK_GAME) == PermissionStatus.DISABLED): + # return await func(self, message) # 获取消息信息 sender = message.get("sender", "") - roomid = message.get("roomid", "") bot: WechatAPIClient = message.get("bot") revoke: MessageAutoRevoke = message.get("revoke")