bugfix:更换数据库初始化超时路径以修复连接超时问题 (#2137)

* bugfix:更换数据库初始化超时路径以修复连接超时问题

* 移除部分观测链路

* 细节修改

* 权限检查细节修改2

* bugfix:修复金币懒加载造成插件金币消耗不了的问题

* bugfix:整理鉴权逻辑

* 完善缓存系统

* 优化官端使用

* bugfix:增加官机和频道的前导统一剥离,新增获取群列表自愈

* bugfix:修复导入问题
This commit is contained in:
Copaan
2026-06-07 18:14:01 +08:00
committed by GitHub
parent 381d497c6d
commit 8afc8f8673
56 changed files with 1899 additions and 1654 deletions
@@ -108,9 +108,7 @@ async def _(
):
if session.user.id == bot.self_id:
"""新成员为bot本身"""
group, _ = await GroupConsole.get_or_create(
group_id=str(event.group_id), channel_id__isnull=True
)
group, _ = await GroupConsole.get_or_create_root_group(str(event.group_id))
try:
await GroupManager.add_bot(
bot, str(event.operator_id), str(event.group_id), group
@@ -124,7 +124,7 @@ class GroupManager:
group_id=group_id,
)
return
await GroupConsole.update_or_create(
await GroupConsole.get_or_create_root_group(
group_id=group_info["group_id"],
defaults={
"group_name": group_info["group_name"],
@@ -134,6 +134,7 @@ class GroupManager:
"block_plugin": block_plugin,
"platform": "qq",
},
update_defaults=True,
)
@classmethod