李昊 4 years ago
parent
commit
189873fb00
1 changed files with 2 additions and 1 deletions
  1. 2 1
      GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

+ 2 - 1
GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -311,7 +311,8 @@ namespace GxPress.Repository.Implement
                     }
                     else
                     {
-                        var code = "123456";
+                        //var code = "123456";
+                        var code = _cache.GetString(key).Replace("\"", "");
                         if (string.IsNullOrEmpty(code)) throw new BusinessException("验证码已过期");
                         if (!request.Code.Equals(code, StringComparison.OrdinalIgnoreCase)) throw new BusinessException("验证码错误");
                         user = await GetByPhoneAsync(request.Phone);