Authored by chen.yanyan

修改cts 变成整形 review by 朱小军

... ... @@ -209,20 +209,20 @@
[self.baiduManager POST:kbaiduApiMethod parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSDate *endDate = [NSDate date];
if (block) {
NSTimeInterval cts = [endDate timeIntervalSinceDate:startDate] * 1000.0;
block(cts,operation.response.statusCode);
long durationTime = [endDate timeIntervalSinceDate:startDate] * 1000;
block(durationTime,operation.response.statusCode);
}
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSDate *endDate = [NSDate date];
if (block) {
NSTimeInterval cts = [endDate timeIntervalSinceDate:startDate] * 1000.0;
long durationTime = [endDate timeIntervalSinceDate:startDate] * 1000;
NSInteger ect = 0;
if (error.code == 0) {
ect = -1;
} else {
ect = error.code;
}
block(cts,ect);
block(durationTime,ect);
}
}];
}
... ...