更换签到api
This commit is contained in:
parent
7f8bce6c6c
commit
4b6991f498
@ -123,7 +123,7 @@ class Mihoyobbs:
|
|||||||
else:
|
else:
|
||||||
log.info("正在签到......")
|
log.info("正在签到......")
|
||||||
for i in setting.mihoyobbs_List_Use:
|
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()
|
data = req.json()
|
||||||
if "err" not in data["message"]:
|
if "err" not in data["message"]:
|
||||||
log.info(str(i["name"] + data["message"]))
|
log.info(str(i["name"] + data["message"]))
|
||||||
|
@ -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_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_Cookie_url2 = web_Api + "/auth/api/getMultiTokenByLoginTicket?login_ticket={}&token_types=3&uid={}"
|
||||||
bbs_Tasks_list = bbs_Api + "/apihub/sapi/getUserMissionsState" # 获取任务列表
|
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_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_Detail_url = bbs_Api + "/post/api/getPostFull?post_id={}"
|
||||||
bbs_Share_url = bbs_Api + "/apihub/api/getShareConf?entity_id={}&entity_type=1"
|
bbs_Share_url = bbs_Api + "/apihub/api/getShareConf?entity_id={}&entity_type=1"
|
||||||
|
Loading…
Reference in New Issue
Block a user