namespace molilian.core { /// /// 隐藏号判断:隐藏号命中的转链只返回 deeplink,不产生任何日志、统计、上报数据 /// public static class HiddenAccountCore { public static Task IsHiddenAsync(TkChannelEnum channel, int accountId) { return IsHiddenAsync(channel.ToString(), accountId); } public static async Task IsHiddenAsync(string channel, int accountId) { if (accountId <= 0) return false; switch ((channel ?? string.Empty).ToLowerInvariant()) { case "tb": var tbAccount = await TkPoolCore.ALLGetOneAsync(accountId); return tbAccount != null && tbAccount.is_hide; case "pdd": var pddAccounts = await PddPoolCore.AllListAsync(); var pddAccount = pddAccounts?.FirstOrDefault(e => e.id == accountId); return pddAccount != null && pddAccount.is_hide; default: return false; } } } }