...
|
...
|
@@ -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
|
...
|
...
|
|