From 2eb8c40c3bfeb1ac777b72e02aea485119e9d158 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期二, 10 六月 2025 15:27:16 +0800 Subject: [PATCH] 1 --- project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs index dc8fbd4..06a69fe 100644 --- a/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs +++ b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs @@ -33,7 +33,7 @@ } /// <summary> - /// 鍦ㄦ淇汉鍛樼洃鎺� + /// 鍦ㄦ淇汉鍛樼洃鎺э紙鏁板瓧澶у睆锛� /// </summary> /// <returns></returns> [HttpPost, Route("PersonnelMonitoring"), AllowAnonymous] @@ -44,15 +44,16 @@ /// <summary> - /// 鏇存敼鐘舵�侊紝杩愯杩涘叆妫�淇� + /// 鏇存敼鐘舵�侊紝寮哄埗涓嬬嚎 /// </summary> /// <param name="id"></param> /// <returns></returns> [HttpPost, Route("RunOperation"), AllowAnonymous] - public WebResponseContent RunOperation(int id, string ispossible) + public WebResponseContent RunOperation(int id, string LocalIP) { - // - return Service.RunOperation(id, ispossible); + var userIp = HttpContext.GetUserIp();//鐢ㄦ埛鐢佃剳ip + var reslut = userIp.Replace("::ffff:", " "); + return Service.RunOperation(id, LocalIP); } /// <summary> @@ -117,5 +118,18 @@ { return Service.StopMaintenanceTask(account); } + + + /// <summary> + /// 灞曠ず寮�濮嬫淇汉鍛� + /// </summary> + /// <param name="status">妫�淇姸鎬�</param> + /// <returns></returns> + [HttpPost,Route("YShowStartTake")] + public WebResponseContent YShowStartTake() + { + return Service.YShowStartTake(); + } + } } -- Gitblit v1.9.3