Beispiel #1
0
        public async Task <ActionResult> GetEmailCode(string email, CodeType codeType = CodeType.用户注册)
        {
            if (!email.IsEmail())
            {
                return(Json(new ApiResult(OperationResultType.ValidError, "请输入正确的邮箱地址")));
            }
            var result = await UserContract.GetEmailValidateCode(email, codeType);

            return(Json(result.ToApiResult()));
        }