v2.7.2 更新

This commit is contained in:
Muihd
2024-03-10 03:44:13 +08:00
parent b8d8790106
commit dffe5b4aec
4 changed files with 62 additions and 71 deletions
+11 -1
View File
@@ -7,7 +7,6 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using BarrageGrab.Modles;
using ColorConsole;
namespace BarrageGrab
{
@@ -163,6 +162,17 @@ namespace BarrageGrab
return null;
}
/// <summary>
/// 根据webRoomid从缓存获取房间信息
/// </summary>
/// <param name="webrid"></param>
/// <returns></returns>
public RoomInfo GetByWebRoomid(string webrid)
{
var find = RoomInfoCache.FirstOrDefault(p => p.Value.WebRoomId == webrid);
return find.Value;
}
public class RoomCacheEventArgs : EventArgs
{