From b9c76ce85e533250cd36de670146530f970859e7 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期五, 01 八月 2025 11:29:49 +0800 Subject: [PATCH] 修改伸缩杆接口 --- 项目代码/后端/WCS/WIDESEAWCS_Server/WIDESEAWCS_TelescopicService/IPaddressServer.cs | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 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_TelescopicService/IPaddressServer.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_TelescopicService/IPaddressServer.cs" index 7d1e507..72aa6de 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_TelescopicService/IPaddressServer.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_TelescopicService/IPaddressServer.cs" @@ -1,6 +1,7 @@ 锘縰sing System; using System.Collections.Generic; using System.Linq; +using System.Net; using System.Text; using System.Threading.Tasks; using WIDESEAWCS_Core; @@ -16,9 +17,17 @@ public IRepository<Dt_CustomIPaddress> Repository => BaseDal; public IPaddressServer(IRepository<Dt_CustomIPaddress> BaseDal) : base(BaseDal) { - + } - + public WebResponseContent GetStandid(string LocalIP) + { + var cunstomip = BaseDal.QueryData(x => x.IPaddress == LocalIP).FirstOrDefault(); + if (cunstomip == null) + { + return new WebResponseContent { Status = false, Message = "璇烽厤缃杞ㄩ亾绔檌p鍦板潃" }; + } + return new WebResponseContent { Status = true, Data = cunstomip.StationID }; + } } } -- Gitblit v1.9.3