|
安装此脚本
如何安装?
脚本问题反馈
给脚本评分
查看代码获取login_token:
人机验证(极验)之后
Post请求:
https://webapi.account.mihoyo.com/Api/login_by_password
请求参数:EnUrlCode
account=【帐号】&password=【加密后的密码】&geetest_challenge=【极验challenge】&geetest_validate=【极验validate】&geetest_seccode=【极验seccode】|jordan
返回参数:Json
{
"code":200,"data":{
"account_info":{
"account_id":【帐号UID】,
"area_code":"+86",
"create_time":【时间戳】},
"email":"【绑定邮箱】(有*掩码)",
"identity_code":"【绑定身份证】(有*掩码)",
"is_adult":1,
"is_email_verify":1,
"mobile":"【绑定手机号】(有*掩码)",
"real_name":"【绑定者真实姓名】(有*掩码)",
"rebind_mobile_time":【时间戳】,
"safe_area_code":"+86",
"safe_level":3,
"safe_mobile":"【应急的安全手机号】(有*掩码)",
"tap_name":"【TapTap用户名】",
"weblogin_token":"【感觉重要的login_token】"
},
"msg":"成功","status":1
}
}
获取stoken:
Get请求:(本请求有时效性应该和极验那边挂钩???)
https://api-takumi.mihoyo.com/auth/api/getMultiTokenByLoginTicket?login_ticket=【上面获取到的login_token】&token_types=3&uid=【帐号UID】
返回参数:Json
{
"retcode":0,
"message":"OK",
"data":{
"list":
[{
"name":"stoken",
"token":"【长度40的stoken】"
},{
"name":"ltoken",
"token":"【长度40的ltoken】"
}
}
cookie:
stuid=【帐号UID】;stoken=【和DS一样是应用端核心】
header:
DS(2.13.1版本的DS)
x-rpc-client_type: 2
x-rpc-app_version: 2.13.1
讨论组签到:Post
https://bbs-api.mihoyo.com/apihub/app/api/signIn
{"gids":"【讨论组id(2好像是原神讨论组)】"}
需要参数:
cookie
DS(2.13.1版本的DS)
x-rpc-client_type: 2
x-rpc-app_version: 2.13.1
x-rpc-device_id: ccc5f41c-86cb-3b8c-862f-3638c909f80c
浏览帖子:Get
https://bbs-api.mihoyo.com/post/api/getPostFull?post_id=【帖子id】
需要参数:
cooke
x-rpc-client_type: 2
点赞:Post
https://bbs-api.mihoyo.com/apihub/sapi/upvotePost
{"is_cancel":false,"post_id":"【帖子id】"}
需要参数:
cookie
DS(2.13.1版本的DS)
x-rpc-client_type: 2
x-rpc-app_version: 2.13.1
x-rpc-device_id: ccc5f41c-86cb-3b8c-862f-3638c909f80c
分享:Get
https://bbs-api.mihoyo.com/apihub/api/getShareConf?entity_id=【帖子id】&entity_type=1
需要参数:
cookie
DS(2.13.1版本的DS)
x-rpc-client_type: 2
x-rpc-app_version: 2.13.1
x-rpc-device_id: ccc5f41c-86cb-3b8c-862f-3638c909f80c
|
|