Skip to content

Commit

Permalink
fix: m-team 自动签到405
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Apr 3, 2024
1 parent a38437f commit 3e196f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/plugins/modules/autosignin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from multiprocessing.dummy import Pool as ThreadPool
from multiprocessing.pool import ThreadPool
from threading import Event
from urllib.parse import urlsplit

import pytz
from apscheduler.schedulers.background import BackgroundScheduler
Expand Down Expand Up @@ -510,10 +511,9 @@ def __signin_base(self, site_info):
# 访问链接
# m-team处理
if 'm-team' in site_url:
split_url = urlsplit(site_url)
url = f"{split_url.scheme}://{split_url.netloc}/api/member/profile"
headers.update({'User-Agent': ua})
if not site_url.endswith('/'):
site_url = site_url + '/'
url = site_url + 'api/member/profile'
res = RequestUtils(cookies=site_cookie,
headers=headers,
proxies=Config().get_proxies() if site_info.get("proxy") else None
Expand Down

0 comments on commit 3e196f6

Please sign in to comment.