From e137a7bf397a9f2bb18b20aa4c341db25191b783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Wed, 21 Sep 2022 14:36:05 +0800 Subject: [PATCH] =?UTF-8?q?xunxi=20=E5=A2=9E=E5=8A=A0timeout=20=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/third/xunxi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/third/xunxi.py b/apps/third/xunxi.py index d2902f0c..2551ed70 100644 --- a/apps/third/xunxi.py +++ b/apps/third/xunxi.py @@ -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