Skip to content

Commit

Permalink
Merge pull request #1 from Tsuk1ko/main
Browse files Browse the repository at this point in the history
修复配置文件可能带尾换行导致 cookie 错误的问题
  • Loading branch information
Maojuan-lang authored Sep 1, 2023
2 parents 58325f6 + f9244f8 commit 5562747
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SenKongDao.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
for cookie_line in cookie_lines:

# 准备签到信息
uid = cookie_line.split("&")[0]
signing_cookie = cookie_line.split("&")[1]
configs = cookie_line.split("&")
uid = configs[0].strip()
signing_cookie = configs[1].strip()
headers = {
"user-agent": "Skland/1.0.1 (com.hypergryph.skland; build:100001014; Android 25; ) Okhttp/4.11.0",
"cred": signing_cookie
Expand Down

0 comments on commit 5562747

Please sign in to comment.