fix RequestUtils ua

This commit is contained in:
jxxghp
2023-06-17 09:54:58 +08:00
parent 1a74a32384
commit 34e5cce7dc
10 changed files with 20 additions and 17 deletions

View File

@ -115,7 +115,7 @@ class SiteStatistic(_PluginBase):
# 普通模式
res = RequestUtils(cookies=site_cookie,
session=session,
headers=ua,
ua=ua,
proxies=proxies
).get_res(url=url)
if res and res.status_code == 200:
@ -136,7 +136,7 @@ class SiteStatistic(_PluginBase):
.replace("window.location=", "")
res = RequestUtils(cookies=site_cookie,
session=session,
headers=ua,
ua=ua,
proxies=proxies
).get_res(url=tmp_url)
if res and res.status_code == 200:
@ -155,7 +155,7 @@ class SiteStatistic(_PluginBase):
if '"search"' not in html_text and '"csrf-token"' not in html_text:
res = RequestUtils(cookies=site_cookie,
session=session,
headers=ua,
ua=ua,
proxies=proxies
).get_res(url=url + "/index.php")
if res and res.status_code == 200: