可能请求的数据格式有问题。
// // 1.管理器
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer = [AFHTTPResponseSerializer serializer]; // 解决text/plain的的数据
manager.requestSerializer = [AFHTTPRequestSerializer serializer]; // 二进制请求
//manager.requestSerializer = [AFJSONRequestSerializer serializer]; // json格式
//manager.requestSerializer = [AFPropertyListRequestSerializer serializer]; // plist格式
// 1.1 设置超时时间
[manager.requestSerializer willChangeValueForKey:@"timeoutInterval"];
manager.requestSerializer.timeoutInterval = 10.f;
[manager.requestSerializer didChangeValueForKey:@"timeoutInterval"];
// 2. 转换成jsonString
NSData *JsonData = [NSJSONSerialization dataWithJSONObject:body options:NSJSONWritingPrettyPrinted error:nil];
NSString *stringjsonData = [[NSString alloc] initWithData:JsonData encoding:NSUTF8StringEncoding];