更换签到api

This commit is contained in:
Womsxd 2022-08-18 17:07:07 +08:00
parent 7f8bce6c6c
commit 4b6991f498
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class Mihoyobbs:
else:
log.info("正在签到......")
for i in setting.mihoyobbs_List_Use:
req = http.post(url=setting.bbs_Sign_url.format(i["id"]), data={}, headers=self.headers)
req = http.post(url=setting.bbs_Sign_url, json={"gids": i["id"]}, headers=self.headers)
data = req.json()
if "err" not in data["message"]:
log.info(str(i["name"] + data["message"]))

View File

@ -80,7 +80,7 @@ account_Info_url = web_Api + "/binding/api/getUserGameRolesByCookie?game_biz="
bbs_Cookie_url = "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/sapi/signIn?gids={}" # post
bbs_Sign_url = bbs_Api + "/apihub/app/api/signIn" # post
bbs_List_url = bbs_Api + "/post/api/getForumPostList?forum_id={}&is_good=false&is_hot=false&page_size=20&sort_type=1"
bbs_Detail_url = bbs_Api + "/post/api/getPostFull?post_id={}"
bbs_Share_url = bbs_Api + "/apihub/api/getShareConf?entity_id={}&entity_type=1"