From 9190b1eabf080af4e0d4d76d6e4ef127a12b1074 Mon Sep 17 00:00:00 2001
From: 肖洋 <cathay_xy@163.com>
Date: 星期二, 10 十二月 2024 15:44:29 +0800
Subject: [PATCH] 12312312

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 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 636959b..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,29 +12,34 @@
 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("RequsetCellInfo")]
-    public WebResponseContent RequsetCellInfo([FromBody] object input)
+    [HttpPost, Route("RequestCellInfo"), AllowAnonymous]
+    public object RequsetCellInfo([FromBody] object input)
     {
         return _MCSService.RequsetCellInfo(input);
     }

--
Gitblit v1.9.3