Authored by 朱小军

删除union.analytics.pairui接口调用

Pod::Spec.new do |s|
s.name = "YH_Analytics"
s.version = "1.4"
s.version = "3.1.5"
s.summary = "Analytics Kit"
s.description = <<-DESC
Analytics Kit
... ...
... ... @@ -255,17 +255,6 @@ static dispatch_queue_t persisting_queue() {
}
}];
}
if ([[NSUserDefaults standardUserDefaults] objectForKey:@"kGDTFinishLaunchApp"] == nil){
NSDictionary *param = @{@"imei" : self.device.ifa?:@""};
[YHNetworkService uploadFirstLaunchAppByGuangDiaTong:param completionBlock:^(BOOL flag, NSError *error) {
if (flag) {
[[NSUserDefaults standardUserDefaults] setObject:@"YES" forKey:@"kGDTFinishLaunchApp"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}];
}
}
#pragma mark - 持久化数据
... ...
... ... @@ -290,28 +290,6 @@ static NSString *const YH_HTTP_PREFIX = @"http://";
}];
}
// 广点通
+ (void)uploadFirstLaunchAppByGuangDiaTong:(NSDictionary *)parameters completionBlock:(void (^)(BOOL flag, NSError *error))block
{
AFHTTPSessionManager *manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL URLWithString:YA_httpHost]];
NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithDictionary:parameters];
params[@"method"] = @"union.analytics.pairui";
params[@"appid"] = @"490655927";
params[@"conv_type"] = @"MOBILEAPP_ACTIVITE";
params[@"app_type"] = @"ios";
params[@"sigin_key"] = @"59fd75c8e2072155";
params[@"encrypt_key"] = @"3c347e729b73157a";
params[@"advertiser_id"] = @"365136";
[manager GET:@"" parameters:params progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
YALog(@"GDT %@", responseObject);
block(YES, nil);
} failure:^(NSURLSessionDataTask *task, NSError *error) {
YALog(@"GDT %@", error.localizedDescription);
block(NO, error);
}];
}
#pragma mark - private method
- (void)handleNetworkReachabilityStatusChanged:(NSNotification *)notification
... ...