public static void 根据CDN更新VTBS_Url() { new Task(() => { string CDN_Url = ""; try { CDN_Url = MMPU.返回网页内容("https://api.vtbs.moe/meta/cdn"); } catch (Exception) { } if (string.IsNullOrEmpty(CDN_Url)) { CDN_Url = MMPU.返回网页内容("https://api.tokyo.vtbs.moe/meta/cdn"); } JArray JO = string.IsNullOrEmpty(CDN_Url) ? (JArray)JsonConvert.DeserializeObject("[]") : (JArray)JsonConvert.DeserializeObject(CDN_Url); List <延迟对象> PING = new List <延迟对象>(); foreach (var item in JO) { PING.Add(new 延迟对象() { CDN_URL = item.ToString() }); } VTBS_Url = 返回延迟最低的连接(PING, 5); 更新CDN完成 = true; InfoLog.InfoPrintf("获取到VTBS当前可用CDN为:" + VTBS_Url, InfoLog.InfoClass.Debug); }).Start(); }