李昊 4 년 전
부모
커밋
c3b3f00840
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

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

@@ -649,8 +649,8 @@ namespace GxPress.Repository.Implement
             try
             {
                 var imServiceUrl = ConfigHelper.GetValue("ServiceAddress:ImUrl");
-                var httpClientHandler = new HttpClientHandler { ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator };
-                HttpClient httpClient = new HttpClient(httpClientHandler); //http对象
+                // var httpClientHandler = new HttpClientHandler { ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator };
+                HttpClient httpClient = new HttpClient(); //http对象
                 HttpResponseMessage response = await httpClient.PostAsync(
                     $"{imServiceUrl}/users",
                     new JsonContent(new { username = request.Phone, password = "123456", nickname = request.Name }));