Skip to content

Commit

Permalink
更合适的变量名
Browse files Browse the repository at this point in the history
  • Loading branch information
Womsxd committed Sep 23, 2023
1 parent 936f2db commit 69edad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion login.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_uid() -> str:
uid_match = re.search(r"(account_id|ltuid|login_uid)=(\d+)", config.config["account"]["cookie"])
if uid_match is None:
# stuid就是uid,先搜索cookie里面的,搜不到再用api获取
data = http.get(url=setting.bbs_cookie_url.format(config.config["account"]["login_ticket"])).json()
data = http.get(url=setting.bbs_account_info.format(config.config["account"]["login_ticket"])).json()
if "成功" in data["data"]["msg"]:
uid = str(data["data"]["cookie_info"]["account_id"])
else:
Expand Down
2 changes: 1 addition & 1 deletion setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
account_Info_url = web_api + "/binding/api/getUserGameRolesByCookie?game_biz="

# 米游社的API列表
bbs_cookie_url = "https://webapi.account.mihoyo.com/Api/cookie_accountinfo_by_loginticket?login_ticket={}"
bbs_account_info = "https://webapi.account.mihoyo.com/Api/cookie_accountinfo_by_loginticket?login_ticket={}"
bbs_cookie_url2 = web_api + "/auth/api/getMultiTokenByLoginTicket?login_ticket={}&token_types=3&uid={}"
bbs_tasks_list = bbs_api + "/apihub/sapi/getUserMissionsState" # 获取任务列表
bbs_sign_url = bbs_api + "/apihub/app/api/signIn" # post
Expand Down

0 comments on commit 69edad0

Please sign in to comment.