/// <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)
        {
            var result = false;

            var userLogonManager = new BaseUserLogonManager();
            var verificationCode = userLogonManager.GetProperty(userInfo.Id, BaseUserLogonEntity.FieldVerificationCode);

            if (!string.IsNullOrEmpty(verificationCode))
            {
                result = verificationCode.Equals(code);
            }

            return(result);
        }