yanjinhui
7 天以前 b9c76ce85e533250cd36de670146530f970859e7
项目代码/后端/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;
@@ -19,6 +20,14 @@
        }
        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 };
        }
    }
}