对于API请求,我尝试使用代理设置URLSession。出于测试目的,我使用了公共(public)代理和响应IP的API。funcmakeRequestViaUrlSessionProxy(_url:String,completion:@escaping(_result:String?)->()){letrequest=URLRequest(url:URL(string:url)!)letconfig=URLSessionConfiguration.defaultconfig.requestCachePolicy=URLRequest.CachePolicy.reloadIgnorin