File tree Expand file tree Collapse file tree
iOS/DoraemonKit/Src/Core/Util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ];
You can’t perform that action at this time.
0 commit comments