修补因抖音更新导致webroomid 获取不到的问题

This commit is contained in:
小白猿
2023-11-04 21:30:37 +08:00
parent 6c573ee18c
commit 5c2248048a
3 changed files with 35 additions and 7 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ namespace BarrageGrab
/// <returns></returns>
public long GetCachedWebRoomid(string roomid)
{
if (RoomInfoCache.TryGetValue(roomid, out var value)) return long.Parse(value.WebRoomId);
if (RoomInfoCache.TryGetValue(roomid, out var value)) return long.Parse(value.WebRoomId??"-1");
return -1;
}