| | |
| | | 锘縰sing System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | |
| | | 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 }; |
| | | } |
| | | } |
| | | } |