From ac93c4092a21dbf0fa9cf8b9b1302f2d5d183f61 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 09 六月 2025 20:48:20 +0800
Subject: [PATCH] 修改提示字段
---
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