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

[pull] main from RayWangQvQ:main #40

Merged
merged 4 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
- name: Get current version
id: current_version
run: |
version=$(grep -oP '(?<=<Version>).*?(?=<\/Version>)' ./scripts/common.props)
version=$(grep -oP '(?<=<Version>).*?(?=<\/Version>)' ./common.props)
echo "Curent version: $version"
echo "current_version=$version" >> $GITHUB_OUTPUT

- name: Tag and push
run: |
new_tag="${{ steps.current_version.outputs.current_version }}"
git tag "$new_tag"
git push origin "$new_tag"
233 changes: 119 additions & 114 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,66 @@
## 0.0.1
- 重启项目
- 支持[青龙面板](https://github.com/whyour/qinglong)部署
## 0.0.2
- 更新文档
- 天选抽奖新增黑名单功能
- 批量取关新增白名单功能
## 0.0.3
- 【#16】修复银瓜子兑换硬币bug
- 【#18】修改[青龙面板](https://github.com/whyour/qinglong)以`Production`环境运行
- [青龙面板](https://github.com/whyour/qinglong)新增拉取dev先行版功能
## 0.0.4
- 【#15】修复`Actions`部署到腾讯云函数时的偶发异常
## 0.0.5
- 优化推送日志,在标题中显示运行的任务名称
- 新增`CodeQL`workflows,用于检测代码
- 新增`Publish image`workflows,用于发布镜像
- 新增`no-toxic-comments.yml`,用于检测评论
- 更新`auto-close-pr.yml`,用于修正PR的目标到`develop`
## 0.0.6
- 更新docker镜像的构建
- 【#12】新增配置`Notification:IsSingleAccountSingleNotify`,支持开启每个账号单独推送消息
- publish-release.yml新增手动输入tag功能
## 0.0.7
- 【#44】兼容青龙最新版本(v2.12.0),修复因青龙调整目录结构导致的bug
- 更新`publish-image.yml`,只有`release`时才打`latest tag`,手动运行时不打`latest tag`
## 0.0.8
- 【#55】新增日志推送端:`Microsoft Teams`
- 【#27】更新README
## 0.0.9
- 【#47】青龙安装`dotnet`环境,支持arm架构服务器
## 0.1.0
- 【#62】`codeql-analysis.yml`可以指定检查的文件类型
- 【#61】`publish-image.yml`手动打镜像时支持指定是否打latest的tag
- 【#32】新增企业微信的应用推送,实现微信接受推送消息
- 优化日志格式
## 0.1.1
- 【#54】优化青龙shell脚本读取仓库目录方式,解决青龙新老版本切换导致出现多个repo目录的bug
- 【#82】【#85】合并外部PR,更新了文档
- 感谢`JetBrain`提供免费的证书支持
## 0.1.2
- 修复`auto-close-pr.yml`分支错误的bug
- 【#107】新增自动检测并关闭长时无状态issues的actions:no-response.yml
- 【#73】【#105】【#108】更新、纠正文档内容
- HostConfiguration,删除了CommandLine配置源,推荐只使用环境变量,同时更新青龙shell脚本内配置
- 【#169】领取大会员福利任务更改为每日都尝试执行
- 青龙拉库兼容大小写问题
- 【#197】合并PR,新增了阅读漫画功能到每日任务中(@ChanceLuo)
## 0.2.0
- 新增大会员大积分任务
## 0.2.1
- 合并PR(#253、#257),更新文档(@layui0320)
- 合并PR(#256),重构docker运行是cron构建方式,并优化读取环境变量的方式(@syrinka)
- Feature(#65):新增TG推送配置并使用代理功能
- Feature(#240):新增gotify推送
- Feature(#259):大会员状态改为枚举类型,当非会员时自动跳过大积分任务
- Feature:更新、优化docker部署文档
## 2.0.3
- PR[#641]:实现浏览会员购页面与观看正片内容功能
- PR[#685]:部分修复大积分功能
- Fix:更新过于老旧的UserAgent
- Fix:更新排行榜api
## 2.0.2
- PR[#617]:增加专栏投币功能与领取大会员经验的功能
## 2.0.1
- PR[#539]:更新文档
- PR[#557]:修复直播接口权限不足问题
## 2.0.0
- Feature[#513]:将基础组件和抽象迁移到nuget包中
- Fix[#543]:修复部分Api调用报“访问权限不足”
## 1.0.3
- Fix #486 : fix release zip error
## 1.0.2
- Fix #484 : fix read dic config error
- Merge PR #472 : add reverse proxy host for telegram notification
- Merge PR #483 : update login field for entrypoint
## 1.0.1
- Fix #463 : do not trust user's ck config
- Feature #460 : publish single file when release
- Feature: use new scripts for gh actions's release
- Feature #473 : let user input when there is no target task in configs
## 1.0.0
- Feature: Enable asynchronous
- Fix #344 : Support `Ctrl + C` to trigger exit event
- Fix #451 : Rebuild cookie factory pattern and fix bug of donating coin
- Featur: Replace AOP from MethodBoundaryAspect.Fody to Rougamo.Fody, to fix async exception
- Merge PR #448 : Fix typo
- Fix #446 : Change id type from int to long
## 0.4.6
- Fix: ck list init empty error
- Feature #440 : use 'apk add' to install dotnet in qinglong
## 0.4.5
- Fix #423 : Change int to string to avoid overflow exception
## 0.4.4
- Fix #228 : Try to fix sharing video error
- Feature: Change default docker image from dockerhub to github
## 0.4.3
- Feature #419 : Add a auto shell script for installing with docker
- Feature #396 : Publish docker image to GitHub pkg
## 0.4.2
- Merfe PRs #425 #426 #427 : Enhancement docker things, thx @zclkkk
## 0.4.1
- Merge PR #418 : Fix search video api's error, thx @catlair
## 0.4.0
- 合并PR( #381 #383 ),新增直播间挂机功能,感谢@bakapiano
## 0.3.2
- Fix( #358 ),获取auth时兼容老版青龙文件路径
- Fix( #364 ),兼容青龙异形response数据类型
- Fix( #366 #361 ),修复一些低级bug
- Feature( #359 ),兼容读取不到`$QL_DIR`的情况
## 0.3.1
- Fix( #260 ),在需要的时候encode cookie
- 更新文档
## 0.3.0
- hotfix docker build error
- 合并PR(#341),新增krew部署,感谢@chenliu1993
- 合并PR(##348),更新文档,感谢@jexjws
- 合并PR(#350),修改请求header错误的bug,感谢@catlair
- 合并PR(#353),新增python扫码登录的feature(仅针对青龙),感谢@AFUL1991
- Feature(#351):重构并新增了扫码登录功能,使之适用于各种部署平台
## 0.2.2
- 新增`podman`部署教程
- 合并PR(#264),腾讯云定时任务补充新增的大会员大积分任务,感谢@layui0320
Expand All @@ -63,61 +69,60 @@
- 合并PR(#309)新增lv6后开启白嫖模式的配置(多账号时可以实现不足lv6的继续投币,达到lv6的开始白嫖),感谢@cluom
- 优化青龙安装dotnet的脚本,改为使用官方`dotnet-install.sh`脚本安装(之前测试网络不通,后发现--no-cdn可以)
- 优化青龙的执行脚本,提取公共部分,并且在执行前会尝试安装一次dotnet,会清理一次缓存
## 0.3.0
- hotfix docker build error
- 合并PR(#341),新增krew部署,感谢@chenliu1993
- 合并PR(##348),更新文档,感谢@jexjws
- 合并PR(#350),修改请求header错误的bug,感谢@catlair
- 合并PR(#353),新增python扫码登录的feature(仅针对青龙),感谢@AFUL1991
- Feature(#351):重构并新增了扫码登录功能,使之适用于各种部署平台
## 0.3.1
- Fix( #260 ),在需要的时候encode cookie
## 0.2.1
- 合并PR(#253、#257),更新文档(@layui0320)
- 合并PR(#256),重构docker运行是cron构建方式,并优化读取环境变量的方式(@syrinka)
- Feature(#65):新增TG推送配置并使用代理功能
- Feature(#240):新增gotify推送
- Feature(#259):大会员状态改为枚举类型,当非会员时自动跳过大积分任务
- Feature:更新、优化docker部署文档
## 0.2.0
- 新增大会员大积分任务
## 0.1.2
- 修复`auto-close-pr.yml`分支错误的bug
- 【#107】新增自动检测并关闭长时无状态issues的actions:no-response.yml
- 【#73】【#105】【#108】更新、纠正文档内容
- HostConfiguration,删除了CommandLine配置源,推荐只使用环境变量,同时更新青龙shell脚本内配置
- 【#169】领取大会员福利任务更改为每日都尝试执行
- 青龙拉库兼容大小写问题
- 【#197】合并PR,新增了阅读漫画功能到每日任务中(@ChanceLuo)
## 0.1.1
- 【#54】优化青龙shell脚本读取仓库目录方式,解决青龙新老版本切换导致出现多个repo目录的bug
- 【#82】【#85】合并外部PR,更新了文档
- 感谢`JetBrain`提供免费的证书支持
## 0.1.0
- 【#62】`codeql-analysis.yml`可以指定检查的文件类型
- 【#61】`publish-image.yml`手动打镜像时支持指定是否打latest的tag
- 【#32】新增企业微信的应用推送,实现微信接受推送消息
- 优化日志格式
## 0.0.9
- 【#47】青龙安装`dotnet`环境,支持arm架构服务器
## 0.0.8
- 【#55】新增日志推送端:`Microsoft Teams`
- 【#27】更新README
## 0.0.7
- 【#44】兼容青龙最新版本(v2.12.0),修复因青龙调整目录结构导致的bug
- 更新`publish-image.yml`,只有`release`时才打`latest tag`,手动运行时不打`latest tag`
## 0.0.6
- 更新docker镜像的构建
- 【#12】新增配置`Notification:IsSingleAccountSingleNotify`,支持开启每个账号单独推送消息
- publish-release.yml新增手动输入tag功能
## 0.0.5
- 优化推送日志,在标题中显示运行的任务名称
- 新增`CodeQL`workflows,用于检测代码
- 新增`Publish image`workflows,用于发布镜像
- 新增`no-toxic-comments.yml`,用于检测评论
- 更新`auto-close-pr.yml`,用于修正PR的目标到`develop`
## 0.0.4
- 【#15】修复`Actions`部署到腾讯云函数时的偶发异常
## 0.0.3
- 【#16】修复银瓜子兑换硬币bug
- 【#18】修改[青龙面板](https://github.com/whyour/qinglong)以`Production`环境运行
- [青龙面板](https://github.com/whyour/qinglong)新增拉取dev先行版功能
## 0.0.2
- 更新文档
## 0.3.2
- Fix( #358 ),获取auth时兼容老版青龙文件路径
- Fix( #364 ),兼容青龙异形response数据类型
- Fix( #366 #361 ),修复一些低级bug
- Feature( #359 ),兼容读取不到`$QL_DIR`的情况
## 0.4.0
- 合并PR( #381 #383 ),新增直播间挂机功能,感谢@bakapiano
## 0.4.1
- Merge PR #418 : Fix search video api's error, thx @catlair
## 0.4.2
- Merfe PRs #425 #426 #427 : Enhancement docker things, thx @zclkkk
## 0.4.3
- Feature #419 : Add a auto shell script for installing with docker
- Feature #396 : Publish docker image to GitHub pkg
## 0.4.4
- Fix #228 : Try to fix sharing video error
- Feature: Change default docker image from dockerhub to github
## 0.4.5
- Fix #423 : Change int to string to avoid overflow exception
## 0.4.6
- Fix: ck list init empty error
- Feature #440 : use 'apk add' to install dotnet in qinglong
## 1.0.0
- Feature: Enable asynchronous
- Fix #344 : Support `Ctrl + C` to trigger exit event
- Fix #451 : Rebuild cookie factory pattern and fix bug of donating coin
- Featur: Replace AOP from MethodBoundaryAspect.Fody to Rougamo.Fody, to fix async exception
- Merge PR #448 : Fix typo
- Fix #446 : Change id type from int to long
## 1.0.1
- Fix #463 : do not trust user's ck config
- Feature #460 : publish single file when release
- Feature: use new scripts for gh actions's release
- Feature #473 : let user input when there is no target task in configs
## 1.0.2
- Fix #484 : fix read dic config error
- Merge PR #472 : add reverse proxy host for telegram notification
- Merge PR #483 : update login field for entrypoint
## 1.0.3
- Fix #486 : fix release zip error
## 2.0.0
- Feature[#513]:将基础组件和抽象迁移到nuget包中
- Fix[#543]:修复部分Api调用报“访问权限不足”
## 2.0.1
- PR[#539]:更新文档
- PR[#557]:修复直播接口权限不足问题
## 2.0.2
- PR[#617]:增加专栏投币功能与领取大会员经验的功能
- 天选抽奖新增黑名单功能
- 批量取关新增白名单功能
## 0.0.1
- 重启项目
- 支持[青龙面板](https://github.com/whyour/qinglong)部署
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Authors>Ray</Authors>
<Version>2.0.2</Version>
<Version>2.0.3</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
31 changes: 31 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- [3.3.8. 每月几号自动领取会员权益](#338-每月几号自动领取会员权益)
- [3.3.9. 每月几号进行直播中心银瓜子兑换硬币](#339-每月几号进行直播中心银瓜子兑换硬币)
- [3.3.10. Lv6后开启硬币白嫖模式](#3310-lv6后开启硬币白嫖模式)
- [3.3.11. 是否开启专栏投币](#3311-是否开启专栏投币)
- [3.4. 天选时刻抽奖相关](#34-天选时刻抽奖相关)
- [3.4.1. 根据关键字排除奖品](#341-根据关键字排除奖品)
- [3.4.2. 根据关键字指定奖品](#342-根据关键字指定奖品)
Expand Down Expand Up @@ -75,6 +76,8 @@
- [3.7.3. 定时任务相关](#373-定时任务相关)
- [3.7.4. 定时任务](#374-定时任务)
- [3.7.5. Crontab](#375-crontab)
- [3.8. 大积分相关](#38-大积分相关)
- [3.8.1. 自定义观看番剧](#381-自定义观看番剧)

<!-- /TOC -->

Expand Down Expand Up @@ -314,6 +317,8 @@ export Ray_Serilog__WriteTo__9__Args__token="abcde"
<a id="markdown-331-是否开启观看视频任务" name="331-是否开启观看视频任务"></a>
#### 3.3.1. 是否开启观看视频任务

当该配置被设置为`false`时会导致大积分任务中的签到领额外10点经验的任务不能自动完成。

| TITLE | CONTENT |
| ---------- | -------------- |
| 配置Key | `DailyTaskConfig:IsWatchVideo` |
Expand Down Expand Up @@ -437,6 +442,18 @@ export Ray_Serilog__WriteTo__9__Args__token="abcde"
| 环境变量 | `Ray_DailyTaskConfig__SaveCoinsWhenLv6` |
| GitHub Secrets | |

<a id="markdown-3311-是否开启专栏投币" name="3311-是否开启专栏投币"></a>
#### 3.3.11. 是否开启专栏投币

| TITLE | CONTENT |
| ---------- | -------------- |
| 配置Key | `DailyTaskConfig:IsDonateCoinForArticle` |
| 值域 | [true,false]|
| 默认值 | false |
| 环境变量 | `Ray_DailyTaskConfig__IsDonateCoinForArticle` |
| GitHub Secrets | |


<a id="markdown-34-天选时刻抽奖相关" name="34-天选时刻抽奖相关"></a>
### 3.4. 天选时刻抽奖相关

Expand Down Expand Up @@ -896,3 +913,17 @@ environment:
0 15 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=Daily >> /var/log/cron.log
0 22 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=LiveLottery >> /var/log/cron.log
```

<a id="markdown-38-大积分相关" name="38-大积分相关"></a>
### 3.8. 大积分相关

<a id="markdown-381-自定义观看番剧" name="381-自定义观看番剧"></a>
#### 3.8.1. 自定义观看番剧

| TITLE | CONTENT |
| ---------- | -------------- |
| 配置Key | `VipBigPointConfig:ViewBangumis` |
| 值域 | 番剧的ssid(season_id) |
| 默认值 | `33378`(名侦探柯南) |
| 环境变量 | `Ray_VipBigPointConfig__ViewBangumis` |
| GitHub Secrets | |
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

public class SearchArticlesByUpIdDto
{
public long Mid { get; set; }
public long mid { get; set; }

public int Pn { get; set; } = 1;
public int pn { get; set; } = 1;

public int Ps { get; set; } = 30;
public int ps { get; set; } = 12;

public string Sort { get; set; } = "publish_time";
public string sort { get; set; } = "publish_time";

public long web_location { get; set; } = 1550101;

public string platform { get; set; } = "web";
}

public class SearchArticlesByUpIdFullDto : SearchArticlesByUpIdDto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public class UploadVideoHeartbeatRequest

public string Bvid { get; set; }

public long? Epid { get; set; }

public long? Sid { get; set; }

/// <summary>
/// 当前用户UID
/// </summary>
Expand Down Expand Up @@ -49,6 +53,11 @@ public class UploadVideoHeartbeatRequest
/// </summary>
public int Type { get; set; } = 3;

/// <summary>
/// 剧集副类型
/// </summary>
public int? Sub_type { get; set; }

/// <summary>
/// 2
/// </summary>
Expand Down
Loading
Loading