jkpang / PPNetworkHelper

AFNetworking 3.x 与YYCache封装
MIT License
1.58k stars 344 forks source link

建议将请求结果的log 转json 进行输出,格式比较清晰,在加上输出请求的url和参数比较好 #63

Open Geoege-xll opened 6 years ago

Geoege-xll commented 6 years ago

NSData data = [NSJSONSerialization dataWithJSONObject:responseObject options:NSJSONWritingPrettyPrinted error:nil]; NSString jcString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; JCLog(@"=============请求结果:\n%@",jcString);