NSOperation operation = [manager HTTPRequestOperationWithRequest:request success:^(AFHTTPRequestOperation operation, id responseObject) {
HttpResult *result = [HttpResult parseResult:[operation responseString]andISNeedEncrypt:params.ISNEED_ENCRYPT];
if (result.jsonDict) {
//有返回值
resultBlcok(result.jsonDict);
}
else if(result.kvdata)
{
resultBlcok(result.kvdata);
}
else if(result.dataset)
{
resultBlcok(result.dataset);
}
else if(result.message){
resultBlcok(result.message);
}
else{
}
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
if (error.localizedDescription != nil) {
} else {
}
errorBlock(error);
}];
[manager.operationQueue addOperation:operation];
此段代码如何用AFN3.0以上替换