动态auth完成。

This commit is contained in:
liuwei
2025-06-09 15:20:48 +08:00
parent 1f262d0399
commit f994f5cbbb
7 changed files with 6 additions and 221 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ class PointTradePlugin(MessagePluginInterface):
self.revoke: MessageAutoRevoke = message.get("revoke")
# 检查权限
if roomid and gbm.get_group_permission(roomid, Feature.POINT_TRADE) == PermissionStatus.DISABLED:
if roomid and gbm.get_group_permission(roomid, self.feature) == PermissionStatus.DISABLED:
return False, "没有权限"
# 处理不同的命令