Skip to content

Commit

Permalink
Merge pull request #698 from RayWangQvQ/develop
Browse files Browse the repository at this point in the history
fix[#260]remove IDs from UA
  • Loading branch information
RayWangQvQ committed Apr 30, 2024
2 parents 69a78ad + 261b182 commit 8e43adc
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 35 deletions.
36 changes: 19 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 2.0.4
- Fix: 尝试修复大会员大积分“账号风险”异常
- Feature:为agent api创建集成测试
## 2.0.5
- Fix[#260]: 再次尝试修复大会员大积分“账号风险”异常
## 2.0.4
- Fix: 尝试修复大会员大积分“账号风险”异常
- Feature:为agent api创建集成测试
## 2.0.3
- PR[#641]:实现浏览会员购页面与观看正片内容功能
- PR[#685]:部分修复大积分功能
Expand Down Expand Up @@ -63,7 +65,7 @@
- 合并PR(##348),更新文档,感谢@jexjws
- 合并PR(#350),修改请求header错误的bug,感谢@catlair
- 合并PR(#353),新增python扫码登录的feature(仅针对青龙),感谢@AFUL1991
- Feature(#351):重构并新增了扫码登录功能,使之适用于各种部署平台
- Feature(#351):重构并新增了扫码登录功能,使之适用于各种部署平台
## 0.2.2
- 新增`podman`部署教程
- 合并PR(#264),腾讯云定时任务补充新增的大会员大积分任务,感谢@layui0320
Expand All @@ -78,9 +80,9 @@
- Feature(#65):新增TG推送配置并使用代理功能
- Feature(#240):新增gotify推送
- Feature(#259):大会员状态改为枚举类型,当非会员时自动跳过大积分任务
- Feature:更新、优化docker部署文档
- Feature:更新、优化docker部署文档
## 0.2.0
- 新增大会员大积分任务
- 新增大会员大积分任务
## 0.1.2
- 修复`auto-close-pr.yml`分支错误的bug
-#107】新增自动检测并关闭长时无状态issues的actions:no-response.yml
Expand All @@ -92,40 +94,40 @@
## 0.1.1
-#54】优化青龙shell脚本读取仓库目录方式,解决青龙新老版本切换导致出现多个repo目录的bug
-#82】【#85】合并外部PR,更新了文档
- 感谢`JetBrain`提供免费的证书支持
- 感谢`JetBrain`提供免费的证书支持
## 0.1.0
-#62`codeql-analysis.yml`可以指定检查的文件类型
-#61`publish-image.yml`手动打镜像时支持指定是否打latest的tag
-#32】新增企业微信的应用推送,实现微信接受推送消息
- 优化日志格式
- 优化日志格式
## 0.0.9
-#47】青龙安装`dotnet`环境,支持arm架构服务器
-#47】青龙安装`dotnet`环境,支持arm架构服务器
## 0.0.8
-#55】新增日志推送端:`Microsoft Teams`
-#27】更新README
-#27】更新README
## 0.0.7
-#44】兼容青龙最新版本(v2.12.0),修复因青龙调整目录结构导致的bug
- 更新`publish-image.yml`,只有`release`时才打`latest tag`,手动运行时不打`latest tag`
- 更新`publish-image.yml`,只有`release`时才打`latest tag`,手动运行时不打`latest tag`
## 0.0.6
- 更新docker镜像的构建
-#12】新增配置`Notification:IsSingleAccountSingleNotify`,支持开启每个账号单独推送消息
- publish-release.yml新增手动输入tag功能
- publish-release.yml新增手动输入tag功能
## 0.0.5
- 优化推送日志,在标题中显示运行的任务名称
- 新增`CodeQL`workflows,用于检测代码
- 新增`Publish image`workflows,用于发布镜像
- 新增`no-toxic-comments.yml`,用于检测评论
- 更新`auto-close-pr.yml`,用于修正PR的目标到`develop`
- 更新`auto-close-pr.yml`,用于修正PR的目标到`develop`
## 0.0.4
-#15】修复`Actions`部署到腾讯云函数时的偶发异常
-#15】修复`Actions`部署到腾讯云函数时的偶发异常
## 0.0.3
-#16】修复银瓜子兑换硬币bug
-#18】修改[青龙面板](https://github.com/whyour/qinglong)`Production`环境运行
- [青龙面板](https://github.com/whyour/qinglong)新增拉取dev先行版功能
- [青龙面板](https://github.com/whyour/qinglong)新增拉取dev先行版功能
## 0.0.2
- 更新文档
- 天选抽奖新增黑名单功能
- 批量取关新增白名单功能
- 批量取关新增白名单功能
## 0.0.1
- 重启项目
- 支持[青龙面板](https://github.com/whyour/qinglong)部署
- 支持[青龙面板](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.4</Version>
<Version>2.0.5</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Interfaces
/// 大会员大积分
/// </summary>
[Header("Host", "api.bilibili.com")]
[Header("User-Agent", "Mozilla/5.0 (Linux; Android 12; SM-S9080 Build/V417IR; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36 os/android model/SM-S9080 build/7760700 osVer/12 sdkInt/32 network/2 BiliApp/7760700 mobi_app/android channel/bili Buvid/XZ286B42466A3AB0A8CC096DCF56101466E9A sessionID/811cdab4 innerVer/7760710 c_locale/zh_CN s_locale/zh_CN disable_rcmd/0 7.76.0 os/android model/SM-S9080 mobi_app/android build/7760700 channel/bili innerVer/7760710 osVer/12 network/2\nx-bili-trace-id: ba85aa511a87af24e23a771873662e7d:e23a771873662e7d:0:0")]
[Header("User-Agent", "Mozilla/5.0 (Linux; Android 12; SM-S9080 Build/V417IR; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36 os/android model/SM-S9080 build/7760700 osVer/12 sdkInt/32 network/2 BiliApp/7760700 mobi_app/android channel/bili innerVer/7760710 c_locale/zh_CN s_locale/zh_CN disable_rcmd/0 7.76.0 os/android model/SM-S9080 mobi_app/android build/7760700 channel/bili innerVer/7760710 osVer/12 network/2")]
[LogFilter]
public interface IVipBigPointApi
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ public async Task LikeAsync_AlreadyLike_GetResultSuccess()
var re = await _api.LikeAsync(cvid, _ck.BiliJct);

// Assert
re.Code.Should().Be(65006);
re.Data.Should().BeNull();
re.Message.Should().BeEquivalentTo("已赞过");
re.Code.Should().BeOneOf(new List<int>
{
0,
65006, //已赞过
});
}

#endregion
Expand Down
30 changes: 17 additions & 13 deletions test/Ray.BiliBiliTool.Agent.FunctionalTests/VipBigPointApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,38 +67,42 @@ public async Task GetVouchersInfoAsync_Normal_Success()
{
// Arrange
// Act
var re = await _api.GetVouchersInfoAsync();

var re = await _api.GetVouchersInfoAsync();

// Assert
re.Code.Should().Be(0);
re.Code.Should().Be(0);
re.Data.List.Should().Contain(x => x.Type == 9);
}


[Fact]
public async Task GetVipExperienceAsync_Normal_Success()
{
// Arrange
{
// Arrange
var req = new VipExperienceRequest()
{
csrf = _ck.BiliJct
};

};

// Act
BiliApiResponse re = await _api.ObtainVipExperienceAsync(req);

// Assert
re.Code.Should().Be(0);
re.Code.Should().BeOneOf(new List<int>
{
0,
69198, //用户经验已经领取
});
}

[Fact]
public async Task CompleteAsync_Normal_Success()
{
// Arrange
var req = new ReceiveOrCompleteTaskRequest("dress-view");

{
// Arrange
var req = new ReceiveOrCompleteTaskRequest("dress-view");

// Act
var re = await _api.CompleteAsync(req);
var re = await _api.CompleteAsync(req);

// Assert
re.Code.Should().Be(0);
Expand Down

0 comments on commit 8e43adc

Please sign in to comment.