Skip to content

Commit d326240

Browse files
author
licd
committed
url type error
1 parent e839911 commit d326240

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

iOS/DoraemonKit/Src/Core/Util/DoraemonStatisticsUtil.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@implementation DoraemonStatisticsUtil
1111

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

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

30-
NSMutableURLRequest *request = [NSURLRequest requestWithURL:url];
30+
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
3131
request.HTTPMethod = @"POST";
3232
[request addValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
3333
[request addValue:@"application/json" forHTTPHeaderField:@"Accept"];

0 commit comments

Comments
 (0)