|
@@ -655,9 +655,9 @@ namespace GxPress.Repository.Implement
|
|
|
// {
|
|
|
// ServerCertificateCustomValidationCallback = (message, certificate2, arg3, arg4) => true
|
|
|
// };
|
|
|
- HttpClientHandler clientHandler = new HttpClientHandler();
|
|
|
- clientHandler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };
|
|
|
- HttpClient httpClient = new HttpClient(clientHandler); //http对象
|
|
|
+ // HttpClientHandler clientHandler = new HttpClientHandler();
|
|
|
+ // clientHandler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };
|
|
|
+ HttpClient httpClient = new HttpClient(); //http对象
|
|
|
HttpResponseMessage response = await httpClient.PostAsync(
|
|
|
$"{imServiceUrl}/users",
|
|
|
new JsonContent(new { username = request.Phone, password = "123456", nickname = request.Name }));
|