Uri url = HttpContext.Current.Request.Url; // 获取URL的协议部分 string protocol = url.Scheme; string domain = HttpContext.Current.Request.Url.Authority; list.Add(new ProjVO { FileName = "揭榜挂帅", FilePath = $"{protocol}://{domain}/Images/bg.png", FileType = "5", TZLX = "1", TZURL = "" });