From 222d2040c2a5e958b5fbd0b7047a8e802ec14288 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期六, 23 十一月 2024 14:42:34 +0800
Subject: [PATCH] 一大堆

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs
index acf1877..c78b08b 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs
@@ -1,5 +1,7 @@
-锘縰sing Microsoft.AspNetCore.Http;
+锘縰sing AutoMapper.Configuration.Annotations;
+using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
+using WIDESEA_Core.BaseController;
 using WIDESEA_DTO;
 using WIDESEA_IStoragIntegrationServices;
 
@@ -10,28 +12,33 @@
 public class MCSController : Controller
 {
     private readonly IMCSService _MCSService;
+    private readonly IHttpContextAccessor _httpContextAccessor;
 
-    public MCSController(IMCSService MCSService) { _MCSService = MCSService; }
+    public MCSController(IMCSService MCSService, IHttpContextAccessor httpContextAccessor)
+    {
+        _httpContextAccessor = httpContextAccessor; 
+        _MCSService = MCSService;
+    }
 
-    [HttpPost("NotifyFinishTest")]
+    [HttpPost, Route("NotifyFinishTest"), AllowAnonymous]
     public WebResponseContent NotifyFinishTest([FromBody] object input)
     {
         return _MCSService.NotifyFinishTest(input);
     }
 
-    [HttpPost("RequestChangeLocation")]
+    [HttpPost, Route("RequestChangeLocation"), AllowAnonymous]
     public WebResponseContent RequestChangeLocation([FromBody] object input)
     {
         return _MCSService.RequestChangeLocation(input);
     }
 
-    [HttpPost("ModifyAccessStatus")]
+    [HttpPost, Route("ModifyAccessStatus"), AllowAnonymous]
     public WebResponseContent ModifyAccessStatus([FromBody] object input)
     {
         return _MCSService.ModifyAccessStatus(input);
     }
 
-    [HttpPost("RequestCellInfo")]
+    [HttpPost, Route("RequestCellInfo"), AllowAnonymous]
     public object RequsetCellInfo([FromBody] object input)
     {
         return _MCSService.RequsetCellInfo(input);

--
Gitblit v1.9.3