From 6a50daac547ebaf0c2503803626e12fbc63c0bb6 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期四, 28 八月 2025 10:13:45 +0800 Subject: [PATCH] 修改密码的复杂度 --- 项目代码/后端/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/MaintenanceController.cs | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 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..69b5788 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> @@ -118,7 +120,7 @@ { var userIp = HttpContext.GetUserIp();//鐢ㄦ埛鐢佃剳ip var reslut = userIp.Replace("::ffff:",""); - return Service.StopMaintenanceTask(account, userIp); + return Service.StopMaintenanceTask(account, reslut); } @@ -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