From 43d31c2e56da8954828be4a7e027c6ad0aaf038a Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期三, 17 八月 2022 10:45:10 +0800
Subject: [PATCH] 设备点检项目、保养项目接口(查询、新增、编辑、删除、导入)

---
 VueWebApi/Controllers/BasicSettingController.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/VueWebApi/Controllers/BasicSettingController.cs b/VueWebApi/Controllers/BasicSettingController.cs
index a10fd79..a39a080 100644
--- a/VueWebApi/Controllers/BasicSettingController.cs
+++ b/VueWebApi/Controllers/BasicSettingController.cs
@@ -17,6 +17,7 @@
 {
     [RoutePrefix(prefix: "api/BasicSetting")]
     [ControllerGroup("鍩虹璁剧疆","鍦ㄧ嚎鎺ュ彛")]
+    //[ChannelActionFilter]
     public class BasicSettingController : ApiController
     {
         //瀹氫箟鍏ㄥ眬淇℃伅杩斿洖鍙橀噺
@@ -239,7 +240,7 @@
         /// <returns></returns>
         [Route(template: "ImportUserExcel")]
         [HttpPost]
-        public HttpResponseMessage ImportUserExcel(HttpPostedFileBase files)
+        public HttpResponseMessage ImportUserExcel(HttpPostedFileBase files,string username)
         {
             string savePath;
             if (files == null || files.ContentLength <= 0)
@@ -249,7 +250,6 @@
             }
             else
             {
-                var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //鐧诲綍鐢ㄦ埛鍚�
                 string filename = Path.GetFileName(files.FileName);
                 int filesize = files.ContentLength;//鑾峰彇涓婁紶鏂囦欢鐨勫ぇ灏忓崟浣嶄负瀛楄妭byte
                 string fileEx = System.IO.Path.GetExtension(filename);//鑾峰彇涓婁紶鏂囦欢鐨勬墿灞曞悕

--
Gitblit v1.9.3