You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
919 B

1 month ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Sog;
using ProtoCSStruct;
using Sog.IO;
namespace Game
{
/// <summary>
/// 设备黑名单列表
/// </summary>
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());
}
}
}