diff --git a/src/BiliLite.UWP/Models/Common/Live/LiveGiftItem.cs b/src/BiliLite.UWP/Models/Common/Live/LiveGiftItem.cs index b99bd594..8d377691 100644 --- a/src/BiliLite.UWP/Models/Common/Live/LiveGiftItem.cs +++ b/src/BiliLite.UWP/Models/Common/Live/LiveGiftItem.cs @@ -128,7 +128,7 @@ public class LiveGiftItem public int ComboResourcesId { get; set; } [JsonProperty("goods_id")] - public int GoodsId { get; set; } + public long GoodsId { get; set; } public int Num { get; set; } = 1; } diff --git a/src/BiliLite.UWP/Modules/Live/LiveMessage.cs b/src/BiliLite.UWP/Modules/Live/LiveMessage.cs index b6202b2e..894b3efe 100644 --- a/src/BiliLite.UWP/Modules/Live/LiveMessage.cs +++ b/src/BiliLite.UWP/Modules/Live/LiveMessage.cs @@ -163,7 +163,7 @@ private async Task ParseData(byte[] data) foreach (var item in textLines) { // 使用上波弹幕到这波的间隔确定延迟 - var danmuDelay = (timeStampNow - PreviousDanmuPackageTimeStamp) / danmuCount * 1.3; + var danmuDelay = danmuCount > 0 ? ((timeStampNow - PreviousDanmuPackageTimeStamp) / danmuCount * 1.3) : 0; var delay = ParseMessage(item) switch { MessageDelayType.DanmuMessage => danmuDelay <= 30 ? 30 : danmuDelay, // 常规弹幕类型, 加延迟