xunxi 增加timeout 时间
This commit is contained in:
parent
d1db7d60bb
commit
e137a7bf39
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue