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

【修复】执行大积分任务时出现账号存在风险的一个修复方式 #635

Open
Polaris-cn10086 opened this issue Nov 28, 2023 · 3 comments

Comments

@Polaris-cn10086
Copy link
Contributor

在执行大积分任务时,会出现提示账号存在风险的问题(该测试账号前两天使用正常):
2c61e51c607b0010e4cc7795bf8d011e

根据排除,问题出在相关api调用的参数问题,修复方式:
1.修改src\Ray.BiliBiliTool.Agent\BiliBiliAgent\Interfaces\IVipBigPointApi.cs文件的相关api调用为:

[Header("Referer", "https://www.bilibili.com")]
[HttpPost("/pgc/activity/score/task/sign")]
Task<BiliApiResponse> Sign([FormContent] SignRequest request);

且将文件顶部的RefererUser-Agent注释掉。

这样即可使大积分登录任务执行成功(这样的修改可能会影响其他的api调用,等待测试)
9c919cc6e0554e8a3e2a68da1b9afbc8

@RayWangQvQ
Copy link
Owner

待会我来测试下,感谢反馈

@Polaris-cn10086
Copy link
Contributor Author

我自己本地的版本目前是只针对签到的api来修改,其他的暂时保持原本的调用。
有个问题就是,那个接口上的修饰器是比方法上的优先级高的,这样改的话不是很美观。要把那一长串useragent复制好几遍。

@nekoaday
Copy link

nekoaday commented Dec 6, 2023

我把手机自带的webview里的useragent拿过来,本地win11跑能过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants