Skip to content

Commit

Permalink
修复配置文件可能带尾换行导致 cookie 错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuk1ko committed Sep 1, 2023
1 parent 58325f6 commit f9244f8
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 f9244f8

Please sign in to comment.