https 问题的解决
这里时候后台自己生成的免费证书
1.找后台要一个生成的cer文件
2.直接拖进你的工程里面
3.在你以前封装的好的网络里面添加以下代码
NSString * cerPath = [[NSBundle mainBundle] pathForResource:@"myCA" ofType:@"cer"];
NSData * cerData = [NSData dataWithContentsOfFile:cerPath];
_manager.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone withPinnedCertificates:[[NSSet alloc] initWithObjects:cerData, nil]];
_manager.securityPolicy.allowInvalidCertificates = YES;
[_manager.securityPolicy setValidatesDomainName:NO];
注意 :一定要把你info plist 绕过https 的yes 删除