加入debug日志
This commit is contained in:
@@ -177,7 +177,7 @@ class LoginMixin(WechatAPIClientBase):
|
|||||||
raise UserLoggedOut("请先登录")
|
raise UserLoggedOut("请先登录")
|
||||||
|
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
logger.debug(f'heartbeat: http://{self.ip}:{self.port}/api/Login/HeartBeat?wxid={self.wxid}')
|
# 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}')
|
response = await session.post(f'http://{self.ip}:{self.port}/api/Login/HeartBeat?wxid={self.wxid}')
|
||||||
json_resp = await response.json()
|
json_resp = await response.json()
|
||||||
if json_resp.get("Success"):
|
if json_resp.get("Success"):
|
||||||
@@ -199,7 +199,7 @@ class LoginMixin(WechatAPIClientBase):
|
|||||||
raise UserLoggedOut("请先登录")
|
raise UserLoggedOut("请先登录")
|
||||||
|
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
logger.debug(f'heartbeat long: http://{self.ip}:{self.port}/api/Login/HeartBeatLong?wxid={self.wxid}')
|
# 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}')
|
response = await session.post(f'http://{self.ip}:{self.port}/api/Login/HeartBeatLong?wxid={self.wxid}')
|
||||||
json_resp = await response.json()
|
json_resp = await response.json()
|
||||||
if json_resp.get("Success"):
|
if json_resp.get("Success"):
|
||||||
|
|||||||
Reference in New Issue
Block a user