将登录巡检能力收口到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

@@ -36,3 +36,11 @@ class Server864WechatClient(
Server864APIClientBase.__init__(self, ip, port, server_key=server_key, **kwargs)
MessageMixin.__init__(self)
self._init_runtime_state()
async def run_login_health_check(self) -> bool:
"""执行 864 provider 的登录态巡检。"""
# 864 当前不依赖 855 那套“二次自动校验”模型:
# 1. 登录状态更多由服务端维护,客户端不需要额外补一次旧版登录恢复动作;
# 2. 因此这里显式返回 False表示“本 provider 没有额外巡检动作”,避免系统任务报错;
# 3. 后续如果 864 需要补自己的巡检逻辑,也只需要在本 provider 内部扩展。
return False