/// <summary> /// 判断证码是否正确 /// </summary> /// <param name="taskId">任务标识</param> /// <param name="userInfo">用户</param> /// <param name="code">验证码</param> /// <returns>正确</returns> public bool ValidateVerificationCode(string taskId, BaseUserInfo userInfo, string code) { bool result = false; BaseUserLogOnManager userLogOnManager = new BaseUserLogOnManager(); string verificationCode = userLogOnManager.GetProperty(userInfo.Id, BaseUserLogOnEntity.FieldVerificationCode); if (!string.IsNullOrEmpty(verificationCode)) { result = verificationCode.Equals(code); } return(result); }