Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
NaturezzZ committed Nov 10, 2024
1 parent 7d27837 commit b1c436c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions run_page/codoon_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ def __call__(self, r):
r.headers["timestamp"] = timestamp
if "refresh_token" in params:
r.headers["authorization"] = "Basic " + basic_auth
r.headers[
"content-type"
] = "application/x-www-form-urlencode; charset=utf-8"
r.headers["content-type"] = (
"application/x-www-form-urlencode; charset=utf-8"
)
else:
r.headers["authorization"] = "Bearer " + self.token
r.headers["content-type"] = "application/json; charset=utf-8"
Expand Down
4 changes: 3 additions & 1 deletion run_page/joyrun_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def __update_loginInfo(self):
self.session.headers.update({"ypcookie": loginCookie})
self.session.cookies.clear()
self.session.cookies.set("ypcookie", quote(loginCookie).lower())
self.session.headers.update(self.device_info_headers) # 更新设备信息中的 uid 字段
self.session.headers.update(
self.device_info_headers
) # 更新设备信息中的 uid 字段

def login_by_phone(self):
params = {
Expand Down

0 comments on commit b1c436c

Please sign in to comment.