/// <summary> /// 获取补丁清单请求地址 /// </summary> private string GetPatchManifestRequestURL(string fileName) { // 轮流返回请求地址 if (RequestCount % 2 == 0) { return(_impl.GetPatchDownloadFallbackURL(fileName)); } else { return(_impl.GetPatchDownloadMainURL(fileName)); } }
private string GetStaticVersionRequestURL(string fileName) { string url; // 轮流返回请求地址 if (RequestCount % 2 == 0) { url = _impl.GetPatchDownloadFallbackURL(fileName); } else { url = _impl.GetPatchDownloadMainURL(fileName); } // 注意:在URL末尾添加时间戳 return($"{url}?{System.DateTime.UtcNow.Ticks}"); }