Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit 7b3bba0

Browse files
committed
fix: 超时参数错误
1 parent 00d5821 commit 7b3bba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WechatAPI/Client/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ async def sync_message(self) -> dict:
630630
if not self.wxid:
631631
raise UserLoggedOut("请先登录")
632632

633-
async with aiohttp.ClientSession(timeout=10) as session:
633+
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=10)) as session:
634634
json_param = {"Wxid": self.wxid, "Scene": 0, "Synckey": ""}
635635
response = await session.post(f'http://{self.ip}:{self.port}/Sync', json=json_param)
636636
json_resp = await response.json()

0 commit comments

Comments
 (0)