在调用执行API之前添加以下代码就行了
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
在调用执行API之前添加以下代码就行了
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
转载于:https://www.cnblogs.com/GundamPeter/p/9637188.html