调整日志信息

This commit is contained in:
liuwei
2025-05-07 10:09:14 +08:00
parent ee281da5e8
commit 5fa81e29ea

View File

@@ -177,6 +177,7 @@ class LoginMixin(WechatAPIClientBase):
raise UserLoggedOut("请先登录")
async with aiohttp.ClientSession() as session:
logger.debug(f'heartbeat: http://{self.ip}:{self.port}/api/Login/HeartBeat?wxid={self.wxid}')
response = await session.post(f'http://{self.ip}:{self.port}/api/Login/HeartBeat?wxid={self.wxid}')
json_resp = await response.json()
if json_resp.get("Success"):
@@ -198,6 +199,7 @@ class LoginMixin(WechatAPIClientBase):
raise UserLoggedOut("请先登录")
async with aiohttp.ClientSession() as session:
logger.debug(f'heartbeat long: http://{self.ip}:{self.port}/api/Login/HeartBeatLong?wxid={self.wxid}')
response = await session.post(f'http://{self.ip}:{self.port}/api/Login/HeartBeatLong?wxid={self.wxid}')
json_resp = await response.json()
if json_resp.get("Success"):