Skip to content

Commit

Permalink
url type error
Browse files Browse the repository at this point in the history
  • Loading branch information
licd committed Feb 20, 2019
1 parent e839911 commit d326240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOS/DoraemonKit/Src/Core/Util/DoraemonStatisticsUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@implementation DoraemonStatisticsUtil

+ (void)upLoadUserInfo{
NSString *url = @"https://doraemon.xiaojukeji.com/uploadAppData";
NSURL *url = [NSURL URLWithString:@"https://doraemon.xiaojukeji.com/uploadAppData"];

NSString *appId = [[NSBundle mainBundle] bundleIdentifier];;
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
Expand All @@ -27,7 +27,7 @@ + (void)upLoadUserInfo{
NSError *error;
NSData *postData = [NSJSONSerialization dataWithJSONObject:param options:0 error:&error];

NSMutableURLRequest *request = [NSURLRequest requestWithURL:url];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
request.HTTPMethod = @"POST";
[request addValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[request addValue:@"application/json" forHTTPHeaderField:@"Accept"];
Expand Down

0 comments on commit d326240

Please sign in to comment.