Manos Chorianopoulos

fix verifyTicket crash

...@@ -2420,7 +2420,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) ...@@ -2420,7 +2420,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
2420 // NSLog(@"Finally condition"); 2420 // NSLog(@"Finally condition");
2421 } 2421 }
2422 2422
2423 - NSDictionary *postDictionary = @{@"guid" : guid, @"app_uuid": appUuid, @"ticket": ticket}; 2423 +// NSDictionary *postDictionary = @{@"guid" : guid, @"app_uuid": appUuid, @"ticket": ticket};
2424 + NSMutableDictionary* postDictionary = [[NSMutableDictionary alloc] init];
2425 + [postDictionary setValue:guid forKey:@"guid"];
2426 + [postDictionary setValue:appUuid forKey:@"app_uuid"];
2427 + [postDictionary setValue:ticket forKey:@"ticket"];
2428 +
2424 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL]; 2429 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL];
2425 [self sendContext10:jsonData successBlock:^(NSDictionary *contextResponse) { 2430 [self sendContext10:jsonData successBlock:^(NSDictionary *contextResponse) {
2426 NSDictionary* tokens = [NSDictionary alloc]; 2431 NSDictionary* tokens = [NSDictionary alloc];
...@@ -2467,7 +2472,11 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) ...@@ -2467,7 +2472,11 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
2467 { 2472 {
2468 // NSString* appUuid = [NSString alloc]; 2473 // NSString* appUuid = [NSString alloc];
2469 // appUuid = [WLKeychain getStringForKey:@"NBAPPUuid"]; 2474 // appUuid = [WLKeychain getStringForKey:@"NBAPPUuid"];
2470 - NSDictionary *postDictionary = @{@"user_identifier" : guid}; 2475 +
2476 +// NSDictionary *postDictionary = @{@"user_identifier" : guid};
2477 + NSMutableDictionary* postDictionary = [[NSMutableDictionary alloc] init];
2478 + [postDictionary setValue:guid forKey:@"user_identifier"];
2479 +
2471 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL]; 2480 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL];
2472 [self sendContextGetCosmoteUser:jsonData successBlock:^(NSDictionary *contextResponse) { 2481 [self sendContextGetCosmoteUser:jsonData successBlock:^(NSDictionary *contextResponse) {
2473 NSDictionary* tokens = [NSDictionary alloc]; 2482 NSDictionary* tokens = [NSDictionary alloc];
......