1、
//NSString *urlStr = @"http://47.107.97.230/api/token";
NSString*urlStr =@"http://rtcapi.xueersi.com/api/token";
提示域名错误:误导 error:com.alamofire.error.serialization.response
2、根本原因:http权限验证
(1 ) Info.plist 添加NSAppTransportSecurity类型Dictionary。
(2). 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES之后
网友评论