?
self
.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone];
//解决“Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed.”的问题,AFNetworking 2.0默认在检查SSL证书的时候比较严格
.securityPolicy.allowInvalidCertificates =
YES
;