using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Sog; using ProtoCSStruct; using Sog.IO; namespace Game { /// /// 设备黑名单列表 /// public static class BlackDeviceIdList { private static FileStringIDList m_idList = null; public static bool IsInList(string id) { if(string.IsNullOrEmpty(id)) { return false; } if(m_idList == null) { Init(); } return m_idList.IDInList(id); } private static void Init() { m_idList = new FileStringIDList("../cfg/sog/black_deviceId.txt"); m_idList.ReadFromFile(); TraceLog.Debug("BlackDeviceIdList.Init devicdId count {0} in list", m_idList.GetIdCount()); } } }