From 3bd129fdf2848970cb89c7d382c4b68a7038f21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=82=87=E8=AF=BA?= Date: Mon, 4 Sep 2023 20:25:08 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=AF=B9=E8=AE=BE=E5=A4=87=E6=8C=87?= =?UTF-8?q?=E7=BA=B9=E8=BF=9B=E8=A1=8C=E8=A1=A5=E5=85=85=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hoyolab/login/password_hoyolab.md | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/hoyolab/login/password_hoyolab.md b/hoyolab/login/password_hoyolab.md index 3b6e768..60b075a 100644 --- a/hoyolab/login/password_hoyolab.md +++ b/hoyolab/login/password_hoyolab.md @@ -34,6 +34,57 @@ _请求方式:POST_ | app_name | str | 请求的应用名称
bbs_cn 米游社 | | | ext_fields | str | 拓展字段 | 为使用字符串包裹的 json 字段,若platform为4则必须包含 userAgent 字段,若platform为2则需要包含['cpuType', 'romCapacity', 'productName', 'romRemain', 'manufacturer', 'appMemory', 'hostname', 'screenSize', 'osVersion', 'aaid', 'vendor', 'accelerometer', 'buildTags', 'model', 'brand', 'oaid', 'hardware', 'deviceType', 'devId', 'serialNumber', 'buildTime', 'buildUser', 'ramCapacity', 'magnetometer', 'display', 'ramRemain', 'deviceInfo', 'gyroscope', 'vaid', 'buildType', 'sdkVersion', 'board']字段 | +
+查看示例 + +```json +{ + "device_id": "2d356b22f39b708c", + "seed_id": "d81de6f4-6aa3-4e5f-b8e8-6a4f98e15a76", + "seed_time": "1692248006205", + "platform": "2", + "device_fp": "38d7efe8b7f79", + "app_name": "bbs_cn", + "ext_fields": "{ + \"cpuType\":\"arm64-v8a\", + \"romCapacity\":\"512\", + \"productName\":\"ishtar\", + \"romRemain\":\"459\", + \"manufacturer\":\"Xiaomi\", + \"appMemory\":\"512\", + \"hostname\":\"xiaomi.eu\", + \"screenSize\":\"1440x3022\", + \"osVersion\":\"13\", + \"aaid\":\"a945fe0c-5f49-4481-9ee8-418e74508414\", + \"vendor\":\"中国电信\", + \"accelerometer\":\"0.061016977x0.8362915x9.826724\", + \"buildTags\":\"release-keys\", + \"model\":\"2304FPN6DC\", + \"brand\":\"Xiaomi\", + \"oaid\":\"67b292338ad57a24\", + \"hardware\":\"qcom\", + \"deviceType\":\"ishtar\", + \"devId\":\"REL\", + \"serialNumber\":\"unknown\", + \"buildTime\":\"1690889245000\", + \"buildUser\":\"builder\", + \"ramCapacity\":\"229481\", + \"magnetometer\":\"80.64375x-14.1x77.90625\", + \"display\":\"TKQ1.221114.001 release-keys\", + \"ramRemain\":\"110308\", + \"deviceInfo\":"Xiaomi/ishtar/ishtar:13/TKQ1.221114.001/V14.0.17.0.TMACNXM:user/release-keys", + \"gyroscope\":\"7.9894776E-4x-1.3315796E-4x6.6578976E-4\", + \"vaid\":\"4c10d338150078d8", + \"buildType\":\"user\", + \"sdkVersion\":\"33\", + \"board\":\"kalama\" + }", + "bbs_device_id": "b66a6178-f56d-30ed-97aa-297560c98fc1" +} +``` + +
+ **JSON 返回:** 根对象: From 467bf46337ed13ae0a8f2013742081ac5bd5b711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=82=87=E8=AF=BA?= Date: Mon, 4 Sep 2023 20:46:19 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E8=B6=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E7=9A=84=E6=8C=87=E5=90=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hoyolab/login/password_hoyolab.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hoyolab/login/password_hoyolab.md b/hoyolab/login/password_hoyolab.md index 60b075a..bac6c66 100644 --- a/hoyolab/login/password_hoyolab.md +++ b/hoyolab/login/password_hoyolab.md @@ -146,8 +146,8 @@ _请求方式:POST_ | 字段 | 类型 | 内容 | 备注 | | ---- | ---- | ---- | ---- | -| account | str | 要登录的账户 | 使用RSA + Base64加密,加密方式[详见该页面](hoyolab/login/password_passport.md#%E8%8E%B7%E5%8F%96login-ticket) | -| password | str | 密码 | 使用RSA + Base64加密,加密方式[详见该页面](hoyolab/login/password_passport.md.md#%E8%8E%B7%E5%8F%96login-ticket) | +| account | str | 要登录的账户 | 使用RSA + Base64加密,加密方式[详见该页面](password_passport.md#%E8%8E%B7%E5%8F%96login-ticket) | +| password | str | 密码 | 使用RSA + Base64加密,加密方式[详见该页面](password_passport.md.md#%E8%8E%B7%E5%8F%96login-ticket) | **JSON返回:** From 8e99770181bfe745fc0c23817da06444d0d0c02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=82=87=E8=AF=BA?= Date: Mon, 4 Sep 2023 22:46:54 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hoyolab/login/password_hoyolab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoyolab/login/password_hoyolab.md b/hoyolab/login/password_hoyolab.md index bac6c66..af6d4c3 100644 --- a/hoyolab/login/password_hoyolab.md +++ b/hoyolab/login/password_hoyolab.md @@ -147,7 +147,7 @@ _请求方式:POST_ | 字段 | 类型 | 内容 | 备注 | | ---- | ---- | ---- | ---- | | account | str | 要登录的账户 | 使用RSA + Base64加密,加密方式[详见该页面](password_passport.md#%E8%8E%B7%E5%8F%96login-ticket) | -| password | str | 密码 | 使用RSA + Base64加密,加密方式[详见该页面](password_passport.md.md#%E8%8E%B7%E5%8F%96login-ticket) | +| password | str | 密码 | 使用RSA + Base64加密,加密方式[详见该页面](password_passport.md#%E8%8E%B7%E5%8F%96login-ticket) | **JSON返回:** From c14eba8165b997fbbaa2fd3f47f2125b3fbb44d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=82=87=E8=AF=BA?= Date: Mon, 4 Sep 2023 22:49:25 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hoyolab/login/password_hoyolab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoyolab/login/password_hoyolab.md b/hoyolab/login/password_hoyolab.md index af6d4c3..ce595fb 100644 --- a/hoyolab/login/password_hoyolab.md +++ b/hoyolab/login/password_hoyolab.md @@ -165,7 +165,7 @@ _请求方式:POST_ | ---- | ---- | ---- | ---- | | login_ticket | str | Login Ticket | | | need_realperson | str | 是否要求用户进行实名认证 | | -| token | obj | 包含cookie token?的对象 | | +| token | obj | 包含stoken_v2?的对象 | | | user_info | obj | 用户信息 | | `user_info`对象: