From 74907784c7005b7307b690d010ce6f8292e0dc9b Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期五, 22 八月 2025 09:36:56 +0800
Subject: [PATCH] 修改单机版bug
---
项目代码/后端/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs"
index b48fc1f..21514e0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs"
@@ -39,7 +39,9 @@
[HttpPost, Route("PersonnelMonitoring"), AllowAnonymous]
public WebResponseContent PersonnelMonitoring([FromBody] PaginationDTO pagination)
{
- return Service.PersonnelMonitoring(pagination);
+ var userIp = HttpContext.GetUserIp();//鐢ㄦ埛鐢佃剳ip
+ var reslut = userIp.Replace("::ffff:", "");
+ return Service.PersonnelMonitoring(pagination, reslut);
}
@@ -47,13 +49,13 @@
/// 鏇存敼鐘舵�侊紝寮哄埗涓嬬嚎
/// </summary>
/// <param name="id"></param>
- /// <returns></returns>
+ /// <returns></returns>
[HttpPost, Route("RunOperation"), AllowAnonymous]
- public WebResponseContent RunOperation(int id, string account, string LocalIP)
+ public WebResponseContent RunOperation(int id, string account)
{
- var userIp = HttpContext.GetUserIp();//鐢ㄦ埛鐢佃剳ip
+ var userIp = HttpContext.GetUserIp();//鐢ㄦ埛鐢佃剳ip //鍓嶇瀹㈡埛绔殑ip鍦板潃
var reslut = userIp.Replace("::ffff:", "");
- return Service.RunOperation(id,account, LocalIP);
+ return Service.RunOperation(id,account, reslut);
}
/// <summary>
@@ -130,7 +132,9 @@
[HttpPost,Route("YShowStartTake")]
public WebResponseContent YShowStartTake()
{
- return Service.YShowStartTake();
+ var userIp = HttpContext.GetUserIp();//鐢ㄦ埛鐢佃剳ip
+ var reslut = userIp.Replace("::ffff:", "");
+ return Service.YShowStartTake(reslut);
}
}
--
Gitblit v1.9.3