调整日志信息
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user