测试auth动态化

This commit is contained in:
liuwei
2025-06-09 15:12:23 +08:00
parent 06628b68ad
commit 1f262d0399
2 changed files with 5 additions and 7 deletions

View File

@@ -8,7 +8,6 @@ from typing import Callable, Dict, Any, Tuple
from db.stats_db import StatsDBOperator from db.stats_db import StatsDBOperator
from db.connection import DBConnectionManager from db.connection import DBConnectionManager
from wechat_ipad import WechatAPIClient
def plugin_stats_decorator(plugin_name: str) -> Callable: def plugin_stats_decorator(plugin_name: str) -> Callable:

View File

@@ -206,15 +206,14 @@ def plugin_points_cost(points: int, description: str = None, feature_key: str =
return False, "没有权限" return False, "没有权限"
# 检查是否开启了积分获取功能 # 检查是否开启了积分获取功能
if (GroupBotManager.get_group_permission(roomid, # if (GroupBotManager.get_group_permission(roomid,
Feature.SIGNIN) == PermissionStatus.DISABLED # Feature.SIGNIN) == PermissionStatus.DISABLED
and GroupBotManager.get_group_permission( # and GroupBotManager.get_group_permission(
roomid, Feature.TASK_GAME) == PermissionStatus.DISABLED): # roomid, Feature.TASK_GAME) == PermissionStatus.DISABLED):
return await func(self, message) # return await func(self, message)
# 获取消息信息 # 获取消息信息
sender = message.get("sender", "") sender = message.get("sender", "")
roomid = message.get("roomid", "")
bot: WechatAPIClient = message.get("bot") bot: WechatAPIClient = message.get("bot")
revoke: MessageAutoRevoke = message.get("revoke") revoke: MessageAutoRevoke = message.get("revoke")