xunxi 增加timeout 时间

This commit is contained in:
曹前明 2022-09-21 14:36:05 +08:00
parent d1db7d60bb
commit e137a7bf39
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class XxClient:
self.isRuning = False
# self.t.join()
def request(self, url: str, method: str = 'post', params=dict(), json=dict(), timeout=4, raise_exception=True):
def request(self, url: str, method: str = 'post', params=dict(), json=dict(), timeout=20, raise_exception=True):
if not settings.XX_ENABLED:
raise ParseError('寻息对接未启用')
params['accessToken'] = self.token