Skip to content

Commit

Permalink
Merge branch 'release/0.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Feb 12, 2023
2 parents 54fa6cc + 17e6497 commit fdfb27b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,6 @@
- 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
- Feature: Change default docker image from dockerhub to github
## 0.4.5
- Fix #423 : Change int to string to avoid overflow exception
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>0.4.4</Version>
<Version>0.4.5</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public interface ILiveApi : IBiliBiliApi
[Header("Referer", "https://live.bilibili.com/")]
[Header("Origin", "https://live.bilibili.com")]
[HttpGet("/xlive/web-ucenter/user/MedalWall?target_id={userId}")]
Task<BiliApiResponse<MedalWallResponse>> GetMedalWall(int userId);
Task<BiliApiResponse<MedalWallResponse>> GetMedalWall(string userId);

/// <summary>
/// 佩戴粉丝勋章
Expand Down
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.Console/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"RunTasks": "Daily", //要运行的任务名称[Daily,LiveLottery,UnfollowBatched,VipBigPoint,Test],多个使用&分隔,如“Daily&LiveLottery”,建议使用命令行参数指定
"RunTasks": "Test", //要运行的任务名称[Daily,LiveLottery,UnfollowBatched,VipBigPoint,Test],多个使用&分隔,如“Daily&LiveLottery”,建议使用命令行参数指定

//程序自定义个性化配置
"DailyTaskConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.DomainService/LiveDomainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public void LikeFansMedalLive()
private List<FansMedalInfoDto> GetFansMedalInfoList()
{
_logger.LogInformation("【获取直播列表】获取拥有粉丝牌的直播列表");
var medalWallInfo = this._liveApi.GetMedalWall(int.Parse(this._biliCookie.UserId)).Result;
var medalWallInfo = _liveApi.GetMedalWall(_biliCookie.UserId).Result;

if (medalWallInfo.Code != 0)
{
Expand Down
2 changes: 1 addition & 1 deletion test/BiliAgentTest/LiveApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void GetMedalWall_Normal_Success()
var ck = scope.ServiceProvider.GetRequiredService<CookieStrFactory>();
var api = scope.ServiceProvider.GetRequiredService<ILiveApi>();

BiliApiResponse<MedalWallResponse> re = api.GetMedalWall(919174).Result;
BiliApiResponse<MedalWallResponse> re = api.GetMedalWall("919174").Result;

Assert.NotEmpty(re.Data.List);

Expand Down

0 comments on commit fdfb27b

Please sign in to comment.