Swift 5.1和Alamofire 5.1:GET方法错误

问题描述 投票:0回答:2

[传递标题和参数时:Alamofire.AFError.URLRequestValidationFailureReason.bodyDataInGETRequest(0字节)

 AF.request(urlString,method:.get, parameters: parameters, encoding: URLEncoding.httpBody, headers: headers).responseJSON { response in

              print(response)

 }
ios swift alamofire afnetworking alamofire-request
2个回答
0
投票
希望有帮助...

0
投票
© www.soinside.com 2019 - 2024. All rights reserved.