// 获取app的信息
NSURL *APPUrl = [NSURLURLWithString:GetAppInfoUrl];
NSURLSession *session = [NSURLSessionsessionWithConfiguration:[NSURLSessionConfigurationdefaultSessionConfiguration]];
NSURLRequest *request = [NSURLRequestrequestWithURL:APPUrl];
NSURLSessionDataTask *task = [session dataTaskWithRequest:request completionHandler:^(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError * _Nullable error) {
NSDictionary *dic = [NSJSONSerializationJSONObjectWithData:data options:NSJSONReadingMutableContainerserror:nil];
NSLog(@"APP商店信息-------%@",dic);
}
}];
[task resume];
// 跳转到App Store
NSURL *url = [NSURL URLWithString:APPDownloadURL];
[[UIApplication sharedApplication] openURL:url];