Skip to content

Commit

Permalink
fix:[#446]change int to long
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Feb 23, 2023
1 parent a61061f commit 94b74af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class MedalInfoDto
{
public string Medal_name { get; set; }

public int Medal_id { get; set; }
public long Medal_id { get; set; }

public int Target_id { get; set; }
public long Target_id { get; set; }

public int Level { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public interface IUserInfoApi : IBiliBiliApi
/// <param name="userId">uid</param>
/// <returns></returns>
[HttpGet("/x/space/wbi/acc/info?mid={userId}")]
Task<BiliApiResponse<GetSpaceInfoResponse>> GetSpaceInfo(int userId);
Task<BiliApiResponse<GetSpaceInfoResponse>> GetSpaceInfo(long userId);
}
}
4 changes: 2 additions & 2 deletions src/Ray.BiliBiliTool.DomainService/LiveDomainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public async Task SendDanmakuToFansMedalLive()
_logger.LogInformation("正在发送弹幕...");

// 通过空间主页信息获取直播间 id
int liveHostUserId = medal.Medal_info.Target_id;
var liveHostUserId = medal.Medal_info.Target_id;
var spaceInfo = await _userInfoApi.GetSpaceInfo(liveHostUserId);
if (spaceInfo.Code != 0)
{
Expand Down Expand Up @@ -577,7 +577,7 @@ private async Task<List<FansMedalInfoDto>> GetFansMedalInfoList()
}

// 通过空间主页信息获取直播间 id
int liveHostUserId = medal.Medal_info.Target_id;
var liveHostUserId = medal.Medal_info.Target_id;
var spaceInfo = await _userInfoApi.GetSpaceInfo(liveHostUserId);
if (spaceInfo.Code != 0)
{
Expand Down

0 comments on commit 94b74af

Please sign in to comment.