将登录巡检能力收口到provider层

This commit is contained in:
liuwei
2026-05-07 13:48:49 +08:00
parent 81ea198aa2
commit 050e537ba3
4 changed files with 51 additions and 1 deletions

View File

@@ -13,3 +13,13 @@ class WechatProviderBase(ABC):
provider_name = "base"
server_type = "base"
async def run_login_health_check(self) -> bool:
"""执行 provider 自己定义的登录态巡检。
设计说明:
1. 不同 provider 的登录维护方式差异很大,不能再把这类逻辑留在 Robot 业务层;
2. 855 需要继续执行“二次登录校验”864 当前则不依赖这套动作;
3. 因此基类默认返回 False表示“当前 provider 没有额外巡检动作”,具体实现由各 provider 自己覆盖。
"""
return False