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

实现浏览会员购页面与观看正片内容功能 #641

Merged
merged 9 commits into from
Feb 28, 2024

Conversation

Polaris-cn10086
Copy link
Contributor

@Polaris-cn10086 Polaris-cn10086 commented Dec 5, 2023

修复错误:

  • 修复了在专栏投币任务中错误的return导致不能完成预期投币任务的问题
  • 修复专栏投币任务中查询up主专栏时出现权限不足的问题

添加功能:

添加的功能如标题所示。

目前大积分相关任务中除了需要购买的任务外都已实现

注意:
浏览会员购的api是从https://github.com/catlair/BiliOutils的源码看到的,对于api使用可能是存在问题的,但目前运行正常。

添加配置项:

新增了配置项ViewBangumis用于指定在完成观看正片内容任务时观看的番剧

注意:

  1. 目前该配置只支持使用番剧的ssid,预计后续改为使用mdid
  2. 当前指定的番剧为名侦探柯南,解析json的时候由于其集数太多,在debug会使用大概20M的内存,计划找几个合适的番剧
  3. 允许添加多个番剧
"VipBigPointConfig": {
  "Cron": "7 1 * * *",
  "ViewBangumis": "33378" // 自定义番剧的ssid,若不清楚含义请勿修改(默认为名侦探柯南)
},

更新文档

  1. 为影响专栏投币的配置添加相关描述
  2. 增添对新增配置的相关描述

大会员相关任务有问题的尽量在最近一个月内提出,一个月后大会员就过期了 o(TヘTo)

@Polaris-cn10086
Copy link
Contributor Author

@RayWangQvQ 看一眼PR ≧ ﹏ ≦

[LogFilter]
public interface IVipBigPointApi
{
[Header("Referer", "https://big.bilibili.com/mobile/bigPoint/task")]
[Header("User-Agent", "Mozilla/5.0 (Linux; Android 6.0.1; MuMu Build/V417IR; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36 os/android model/MuMu build/6720300 osVer/6.0.1 sdkInt/23 network/2 BiliApp/6720300 mobi_app/android channel/html5_search_baidu Buvid/XZFC135F5263B6897C8A4BE7AEB125BBF10F8 sessionID/72d3f4c9 innerVer/6720310 c_locale/zh_CN s_locale/zh_CN disable_rcmd/0 6.72.0 os/android model/MuMu mobi_app/android build/6720300 channel/html5_search_baidu innerVer/6720310 osVer/6.0.1 network/2")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UA在注册时会统一配置一个,值来自于配置(

)。这里单独设置有什么特殊原因吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

时间太久远了,不太记得了,但好像是复制的,等我有空捋一下

@RayWangQvQ RayWangQvQ merged commit 3387cc4 into RayWangQvQ:develop Feb 28, 2024
2 checks passed
RayWangQvQ added a commit that referenced this pull request Apr 21, 2024
* 实现浏览会员购页面与观看正片内容功能 (#641)

* 实现浏览会员购页面

* 实现浏览正片内容的功能

* 观看正片任务运行两次以获取全部大积分

* 更新文档

* 修复专栏投币中导致提前结束的逻辑错误

* 修改大积分中相关api调用的错误

* 修复错误

* 修复专栏投币出现权限不足的问题

* 恢复默认配置

* 部分修复大积分功能 (#685)

* 根据api进行修改,等待测试

* 待实现:观看剧集内容

* update UserAgent and ranking api

---------

Co-authored-by: Polaris_cn <polaris_cn@outlook.com>
RayWangQvQ added a commit that referenced this pull request Apr 22, 2024
* Release 2.0.3 (#688)

* 实现浏览会员购页面与观看正片内容功能 (#641)

* 实现浏览会员购页面

* 实现浏览正片内容的功能

* 观看正片任务运行两次以获取全部大积分

* 更新文档

* 修复专栏投币中导致提前结束的逻辑错误

* 修改大积分中相关api调用的错误

* 修复错误

* 修复专栏投币出现权限不足的问题

* 恢复默认配置

* 部分修复大积分功能 (#685)

* 根据api进行修改,等待测试

* 待实现:观看剧集内容

* update UserAgent and ranking api

---------

Co-authored-by: Polaris_cn <polaris_cn@outlook.com>

* Update tag.yml

* Update tag.yml

* Update tag.yml

* update cicd scripts

---------

Co-authored-by: Polaris_cn <polaris_cn@outlook.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants