ProjectsForTest/DevTest-main/DevTest/HttpServer/UrlMap.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DevTest.HttpServer
{
public class UrlMap
{
public string Host { get; set; }
public string Url { get; set; }
public string OldIp { get; set; }
public string NewIp { get; set; }
public bool Used { get; set; }
public UrlMap() { }
public UrlMap(string host, string url, string oldIp, string newIp, bool used)
{
Host = host;
Url = url;
OldIp = oldIp;
NewIp = newIp;
Used = used;
}
public static List<UrlMap> Load(string file)
{
var urlMap = new List<UrlMap>();
if (File.Exists(file))
{
string[] lines = File.ReadAllLines(file);
foreach (var line in lines)
{
if (string.IsNullOrEmpty(line))
{
continue;
}
var sp = line.Split('|');
UrlMap map = new UrlMap();
map.Host = sp[0];
map.Url = sp[1];
map.OldIp = sp[2];
map.NewIp = sp[3];
map.Used = sp[4] == "1";
urlMap.Add(map);
}
}
return urlMap;
}
public static void Save(List<UrlMap> maps, string file)
{
StringBuilder sb = new StringBuilder();
foreach (var item in maps)
{
sb.Append(item.Host);
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。