Skip to content

Commit

Permalink
根据B站最新亲密度规则修改功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Polaris-cn10086 committed Aug 5, 2024
1 parent adcd59d commit faf4380
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ public class LiveFansMedalTaskOptions
public const int HeartBeatInterval = 60;

/// <summary>
/// 点赞次数
/// 点赞次数,默认值为30(用于点亮粉丝勋章)
/// </summary>
public int LikeNumber { get; set; } = 50;
public int LikeNumber { get; set; } = 30;

/// <summary>
/// 发送弹幕次数
/// </summary>
public int SendDanmakuNumber { get; set; } = 15;
public int SendDanmakuNumber { get; set; } = 1;

/// <summary>
/// 弹幕发送失败多少次时放弃
/// </summary>
public int SendDanmakugiveUpThreshold { get; set; } = 5;
public int SendDanmakugiveUpThreshold { get; set; } = 3;
}
}
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.DomainService/LiveDomainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public async Task SendHeartBeatToFansMedalLive()
if (!await CheckLiveCookie()) return;

var infoList = new List<HeartBeatIterationInfoDto>();
(await GetFansMedalInfoList()).ForEach(medal =>
(await GetFansMedalInfoList()).FindAll(info => info.LiveRoomInfo.Live_Status != 0).ForEach(medal =>
infoList.Add(new(medal.RoomId, medal.LiveRoomInfo, new(), 0, 0))
);

Expand Down

0 comments on commit faf4380

Please sign in to comment.