优化代码注释&命名空间

This commit is contained in:
不做码农
2023-05-04 18:20:18 +08:00
parent 547945d85b
commit a89762e070
47 changed files with 224 additions and 353 deletions

View File

@@ -5,7 +5,7 @@ using MiniExcelLibs;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System.Web;
using ff = System.IO;
using Io = System.IO;
namespace ZR.Admin.WebApi.Controllers
{
@@ -61,7 +61,7 @@ namespace ZR.Admin.WebApi.Controllers
//IWebHostEnvironment webHostEnvironment = (IWebHostEnvironment)App.ServiceProvider.GetService(typeof(IWebHostEnvironment));
//string fileDir = Path.Combine(webHostEnvironment.WebRootPath, path, fileName);
var stream = ff.File.OpenRead(path); //创建文件流
var stream = Io.File.OpenRead(path); //创建文件流
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", HttpUtility.UrlEncode(fileName));
}