SVN-Revision: r295
This commit is contained in:
cyf
2025-03-05 07:13:24 +00:00
parent 926fa0e064
commit 257d9ababa
+12 -1
View File
@@ -1167,4 +1167,15 @@ namespace Lskj.Business.Impl
/// <para>版本:1.0</para>
/// </summary>
/// <returns>System.String.</returns>
public static
public static bool CheckingMacAddress(string userId)
{
try
{
if (HasExistsTable("P_MacAddressTable"))
{
DataTable table = SqlHelper.ExecuteDataTable(string.Format("select MacAddress from P_MacAddressTable where userid='{0}'", userId));
DataRow dataRow = table != null && table.Rows.Count > 0 ? table.Rows[0] : null;
if(SystemInfo.Instance.MacMandatoryJudgment&& dataRow==null) return false;
if (dataRow != null&&!string.IsNullOrWhiteSpace(dataRow["MacAddress"] + ""))
{
List<string> MacAddress = ((dataRow["MacAddress"] + "").Split(