From aa84ced401e38e1353ef0e16596c2a1c0276b032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Thu, 6 Oct 2022 13:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlivaDiceOdyssey/webTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OlivaDiceOdyssey/webTool.py b/OlivaDiceOdyssey/webTool.py index ad4bd82..a161ce4 100644 --- a/OlivaDiceOdyssey/webTool.py +++ b/OlivaDiceOdyssey/webTool.py @@ -35,7 +35,7 @@ def getCnmodsReq(title = None, page = None): headers = { 'User-Agent': OlivaDiceCore.data.bot_version_short_header } - msg_res = req.request("GET", send_url, headers = headers) + msg_res = req.request("GET", send_url, headers = headers, proxies = OlivaDiceCore.webTool.get_system_proxy()) res_text = str(msg_res.text) try: tmp_res = json.loads(res_text) @@ -61,7 +61,7 @@ def getRulesReq(key = None, page = None, item_max = None): 'User-Agent': OlivaDiceCore.data.bot_version_short_header } try: - msg_res = req.request("GET", send_url, headers = headers) + msg_res = req.request("GET", send_url, headers = headers, proxies = OlivaDiceCore.webTool.get_system_proxy()) res_text = str(msg_res.text) tmp_res = json.loads(res_text) res = tmp_res