Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pikpak): fix the problem that refresh_token cannot be obtained #7017

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

Three-taile-dragon
Copy link
Contributor

@Three-taile-dragon Three-taile-dragon commented Aug 15, 2024

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数
  • 添加了 refresh_token 字段,用户可自行抓包填写,也可以留空,会自动生成
  • 添加了 captcha_token 字段,无需手动填写

如果登录时有出现 failed get objs: failed to list objs: need verify: < --------a target="_blank" href 这样的错误,是触发了风控

需要点击链接,进行滑动验证码验证,验证完成后,请禁用添加的驱动并重新启用,此时驱动应该正常工作
或者自行抓包,获取 Refresh Token 并填入对应字段

@Three-taile-dragon
Copy link
Contributor Author

这个构建错误...

Error: buildx failed with: ERROR: failed to solve: xhofe/alist:main: failed to resolve source metadata for docker.io/xhofe/alist:main: failed to do request: Head "https://registry-1.docker.io/v2/xhofe/alist/manifests/main": EOF

@wangjunkai2022
Copy link

wangjunkai2022 commented Aug 15, 2024

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数

运行时进入报错 应该是滑块验证那块没有通过 。建议captcha_token这块增加一个手动输入的位置 failed get objs: failed to list objs: need verify: < --------a target="_blank" href="https://user.mypikpak.com/captcha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FpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyncmC_8JQbFZcXs549R3Q5A.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&credittype=1&device_id=1ea48e25d72bde7d4239f34adaa2fb01&deviceid=1ea48e25d72bde7d4239f34adaa2fb01&event=signin_check&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&redirect_uri=xlaccsdk01%3A%2F%2Fxbase.cloud%2Fcallback%3Fstate%3Dharbor&traceid=">Click Here<-------->

@Three-taile-dragon
Copy link
Contributor Author

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数

运行时进入报错 应该是滑块验证那块没有通过 。failed get objs: failed to list objs: need verify: < --------a target="_blank" href="https://user.mypikpak.com/captcha/v2/spritePuzzle.html?action=POST%3A%2Fv1%2Fauth%2Fsignin&appName=NONE&appid=XBASE&captcha_token=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15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OA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&credittype=1&device_id=1ea48e25d72bde7d4239f34adaa2fb01&deviceid=1ea48e25d72bde7d4239f34adaa2fb01&event=signin_check&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&redirect_uri=xlaccsdk01%3A%2F%2Fxbase.cloud%2Fcallback%3Fstate%3Dharbor&traceid=">Click Here<-------->

这是在 获取CaptchaToken时 出现的,这应该是PikPak官方的风控,试着换个环境或者删掉重新添加?

@wangjunkai2022
Copy link

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数

运行时进入报错 应该是滑块验证那块没有通过 。failed get objs: failed to list objs: need verify: < --------a target="_blank" href="https://user.mypikpak.com/captcha/v2/spritePuzzle.html?action=POST%3A%2Fv1%2Fauth%2Fsignin&appName=NONE&appid=XBASE&captcha_token=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyygUDCMpkNvN-VlkDgHoNcI0pj7TsF5bPfmgo9K0xXcY.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&clientVersion=NONE&client_id=YNxT9w7GMdWvEOKa&creditkey=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyncmC_8JQbFZcXs549R3Q5A.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&credittype=1&device_id=1ea48e25d72bde7d4239f34adaa2fb01&deviceid=1ea48e25d72bde7d4239f34adaa2fb01&event=signin_check&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&redirect_uri=xlaccsdk01%3A%2F%2Fxbase.cloud%2Fcallback%3Fstate%3Dharbor&traceid=">Click Here<-------->

这是在 获取CaptchaToken时 出现的,这应该是PikPak官方的风控,试着换个环境或者删掉重新添加?

无法使用删除重新登陆也一样出现这个。可以尝试其他方案 比如手动修改authorization/captcha_token的值获取对应的信息

@Three-taile-dragon
Copy link
Contributor Author

Three-taile-dragon commented Aug 15, 2024

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数

运行时进入报错 应该是滑块验证那块没有通过 。failed get objs: failed to list objs: need verify: < --------a target="_blank" href="https://user.mypikpak.com/captcha/v2/spritePuzzle.html?action=POST%3A%2Fv1%2Fauth%2Fsignin&appName=NONE&appid=XBASE&captcha_token=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyygUDCMpkNvN-VlkDgHoNcI0pj7TsF5bPfmgo9K0xXcY.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&clientVersion=NONE&client_id=YNxT9w7GMdWvEOKa&creditkey=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyncmC_8JQbFZcXs549R3Q5A.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&credittype=1&device_id=1ea48e25d72bde7d4239f34adaa2fb01&deviceid=1ea48e25d72bde7d4239f34adaa2fb01&event=signin_check&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&redirect_uri=xlaccsdk01%3A%2F%2Fxbase.cloud%2Fcallback%3Fstate%3Dharbor&traceid=">Click Here<-------->

这是在 获取CaptchaToken时 出现的,这应该是PikPak官方的风控,试着换个环境或者删掉重新添加?

无法使用删除重新登陆也一样出现这个。可以尝试其他方案 比如手动修改authorization/captcha_token的值获取对应的信息

那就添加一个 Refresh_Token 的字段吧,这样可以手动抓包,可以自行获取。至于 CaptchaToken 参数,这个有效时间不长,在使用时经常变动,手动填写意义不大


refresh_token 字段 已添加

@wangjunkai2022
Copy link

wangjunkai2022 commented Aug 15, 2024

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数

运行时进入报错 应该是滑块验证那块没有通过 。failed get objs: failed to list objs: need verify: < --------a target="_blank" href="https://user.mypikpak.com/captcha/v2/spritePuzzle.html?action=POST%3A%2Fv1%2Fauth%2Fsignin&appName=NONE&appid=XBASE&captcha_token=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyygUDCMpkNvN-VlkDgHoNcI0pj7TsF5bPfmgo9K0xXcY.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&clientVersion=NONE&client_id=YNxT9w7GMdWvEOKa&creditkey=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyncmC_8JQbFZcXs549R3Q5A.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&credittype=1&device_id=1ea48e25d72bde7d4239f34adaa2fb01&deviceid=1ea48e25d72bde7d4239f34adaa2fb01&event=signin_check&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&redirect_uri=xlaccsdk01%3A%2F%2Fxbase.cloud%2Fcallback%3Fstate%3Dharbor&traceid=">Click Here<-------->

这是在 获取CaptchaToken时 出现的,这应该是PikPak官方的风控,试着换个环境或者删掉重新添加?

无法使用删除重新登陆也一样出现这个。可以尝试其他方案 比如手动修改authorization/captcha_token的值获取对应的信息

那就添加一个 Refresh_Token 的字段吧,这样可以手动抓包,可以自行获取。至于 CaptchaToken 参数,这个有效时间不长,在使用时经常变动,手动填写意义不大

refresh_token 字段 已添加

/v1/auth/signin 返回的参数 token_type + access_token
已添加 Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ijk1MGJhZTdjLTJlNzEtNDc3NC04MDQyLTg4NGJiYWU1NzhmZSJ9.eyJpc3MiOiJodHRwczovL3VzZXIubXlwaWtwYWsuY29tIiwic3ViIjoiWmNOcXBEMkw0SHhBWFgwXyIsImF1ZCI6IllVTXg1bkk4WlU4QXA4cG0iLCJleHAiOjE3MjM3Mjk0OTksImlhdCI6MTcyMzcyMjI5OSwiYXRfaGFzaCI6InIuek4xTG1GcjdFZS1Ub0ZxeTdFMFcydyIsInNjb3BlIjoicGFuIHVzZXIgb2ZmbGluZSIsInByb2plY3RfaWQiOiIyd2tzNTZjMzFkYzgwc3htNXA5IiwibWV0YSI6eyJhIjoiWW9uOGJqMkRrVFgrVXdvc3czbW44Yi9BdGphSmkyOFBmeW9oeVlYakZ1UT0ifX0.qAW-RiWmXfACN5MQnMK3IK5e9NbtLWTluSC3zEe1oI2wu5tQjinj8JhDRmOw51ijsuPq7O59aHAVGzMHriI2c53DdMLf47n4E0vm2MgDgRKjTzJyNuD3vTfvgfms825ZYmYRVZp4t2NmkmlFrZcPtJ7AFafwhS1GUij0o6ej3fzDAATSj_xbxofv1I5cAAegTEjp__l6PTn2qrt8jLF9-7SNGU2oZb6-QSd8VvmE4EOj0e************** 添加这样的字段到refresh_token 保存报错 提示错误 Failed init storage: empty captchaToken
单独 access_token 也试过 同样报错 Failed init storage: empty captchaToken

@Three-taile-dragon
Copy link
Contributor Author

改动

  • 移除了 oauth2 的登录方式,改为普通请求(需要携带 captcha_token

原因:现在使用 oauth2 进行登录时,会返回错误提示:

{
  "error": "invalid_argument",
  "error_code": 3,
  "error_description": "currently not supported",
  "details": []
}
  • 跟随官方版本,更新了部分客户端参数(Algorithms)
  • request 函数添加了 User-AgentX-Device-IDX-Captcha-Token 参数

运行时进入报错 应该是滑块验证那块没有通过 。failed get objs: failed to list objs: need verify: < --------a target="_blank" href="https://user.mypikpak.com/captcha/v2/spritePuzzle.html?action=POST%3A%2Fv1%2Fauth%2Fsignin&appName=NONE&appid=XBASE&captcha_token=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyygUDCMpkNvN-VlkDgHoNcI0pj7TsF5bPfmgo9K0xXcY.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&clientVersion=NONE&client_id=YNxT9w7GMdWvEOKa&creditkey=ck0.8EV2FgANiYBEWGRdQ81KFNlQlLiGimyjnC8TSnI8FKi2I1oxEqfBHz5cxoUWyZpLzJh0UIhuhFGbQJmEJFz0sK1WRbDOQJ8f3sqdHjK7HK_Wz6rW15zVBCBNZ1QCzllmj8p0fmztempZxwuOTgDW_o-JMqxDtFeRqawVfzb0QM7GnSKPQ15LOgRlk8n1YZsl1hFwGbg8Atiy5WW-HYndmWZSzqSQfkKS2EX1iZvXXi9sMVgT5f77l4hO8iW4V-qRQCUpzSvFya54TaaAaF8-hKPildaGVBFpTN3yf6pQyHdvARu4P-vjpNV_i0BOqjOyncmC_8JQbFZcXs549R3Q5A.ClgIqf7MqZUyEhBZTnhUOXc3R01kV3ZFT0thGgYxLjQ3LjEiE2NvbS5waWtjbG91ZC5waWtwYWsqIDFlYTQ4ZTI1ZDcyYmRlN2Q0MjM5ZjM0YWRhYTJmYjAxEoABHEm0ceBx5Oj0fqd73SIMm9e2-q8NQQ7KDNVK2WyfiYeUUvY-i6FaUU_A__vClOA1d9pZEqXtrns3U9eHXdbOvz31a4g4qzuBfpwiIRQR2F3DYHymrSO0RPv8DZZpgg-yLaV9VnFVuJDkfUTgSv5cGuuDaB6YBzwc5cte5b-38z4&credittype=1&device_id=1ea48e25d72bde7d4239f34adaa2fb01&deviceid=1ea48e25d72bde7d4239f34adaa2fb01&event=signin_check&mainHost=user.mypikpak.com&platformVersion=NONE&privateStyle=&redirect_uri=xlaccsdk01%3A%2F%2Fxbase.cloud%2Fcallback%3Fstate%3Dharbor&traceid=">Click Here<-------->

这是在 获取CaptchaToken时 出现的,这应该是PikPak官方的风控,试着换个环境或者删掉重新添加?

无法使用删除重新登陆也一样出现这个。可以尝试其他方案 比如手动修改authorization/captcha_token的值获取对应的信息

那就添加一个 Refresh_Token 的字段吧,这样可以手动抓包,可以自行获取。至于 CaptchaToken 参数,这个有效时间不长,在使用时经常变动,手动填写意义不大
refresh_token 字段 已添加

/v1/auth/signin 返回的参数 token_type + access_token 已添加 Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ijk1MGJhZTdjLTJlNzEtNDc3NC04MDQyLTg4NGJiYWU1NzhmZSJ9.eyJpc3MiOiJodHRwczovL3VzZXIubXlwaWtwYWsuY29tIiwic3ViIjoiWmNOcXBEMkw0SHhBWFgwXyIsImF1ZCI6IllVTXg1bkk4WlU4QXA4cG0iLCJleHAiOjE3MjM3Mjk0OTksImlhdCI6MTcyMzcyMjI5OSwiYXRfaGFzaCI6InIuek4xTG1GcjdFZS1Ub0ZxeTdFMFcydyIsInNjb3BlIjoicGFuIHVzZXIgb2ZmbGluZSIsInByb2plY3RfaWQiOiIyd2tzNTZjMzFkYzgwc3htNXA5IiwibWV0YSI6eyJhIjoiWW9uOGJqMkRrVFgrVXdvc3czbW44Yi9BdGphSmkyOFBmeW9oeVlYakZ1UT0ifX0.qAW-RiWmXfACN5MQnMK3IK5e9NbtLWTluSC3zEe1oI2wu5tQjinj8JhDRmOw51ijsuPq7O59aHAVGzMHriI2c53DdMLf47n4E0vm2MgDgRKjTzJyNuD3vTfvgfms825ZYmYRVZp4t2NmkmlFrZcPtJ7AFafwhS1GUij0o6ej3fzDAATSj_xbxofv1I5cAAegTEjp__l6PTn2qrt8jLF9-7SNGU2oZb6-QSd8VvmE4EOj0e************** 添加这样的字段到refresh_token 保存报错 提示错误 Failed init storage: empty captchaToken 单独 access_token 也试过 同样报错 Failed init storage: empty captchaToken

这种方式登录,必须携带 captcha_token

@xhofe xhofe merged commit 8e6c1aa into AlistGo:main Aug 15, 2024
3 checks passed
@ShinChven
Copy link

更新了最新版以后,又出现这个问题了。

Three-taile-dragon added a commit to loognsss/blist that referenced this pull request Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants