提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+26 -1
View File
@@ -638,4 +638,29 @@ namespace Lskj.Main
ADUtil.ADPwd = SystemInfo.Instance.ADPwd;
if (string.IsNullOrEmpty(ADUtil.ADPath))
{
//responseinfo.msg = "AD域配置不正确,请检
//responseinfo.msg = "AD域配置不正确,请检查!";
return false;
}
}
if (ADUtil.ADLogin == true)
{
LoginResult result = ADUtil.LoginByAccount(LoginAccount, Pwd);
responseinfo.success = true;
if (result != LoginResult.LOGIN_USER_OK)
{
responseinfo.success = false;
switch (result)
{
case LoginResult.LOGIN_USER_ACCOUNT_INACTIVE: responseinfo.msg = "登录失败,用户账号被禁用!"; break;
case LoginResult.LOGIN_USER_PASSWORD_INCORRECT: responseinfo.msg = "登录失败,用户密码不正确!"; break;
case LoginResult.LOGIN_USER_DOESNT_EXIST: responseinfo.msg = "登录失败,用户不存在!"; break;
}
return false;
}
return true;
}
return false;
}
}
}