Пример #1
0
        /// <summary>
        /// 生成验证码
        /// </summary>
        /// <param name="type">1-系统级验证码 2-手机短信验证码 3-邮箱验证码</param>
        /// <returns></returns>
        private string GetSystemVerificationCode(string type)
        {
            string code = String.Empty;

            switch (type)
            {
            case "1":
                code = ValidateCodeHelper.GetRandLetterAndNumber(4, true);
                break;

            case "2":
                break;

            case "3":
                break;
            }
            return(code);
        }