From 9f3858dd723a69c56dbab909e0c7e6c5ef8b85a8 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期一, 09 六月 2025 20:27:19 +0800 Subject: [PATCH] 修改plc信息,以及进入检修接口 --- 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