Manos Chorianopoulos

fix verifyTicket crash

......@@ -2420,7 +2420,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
// NSLog(@"Finally condition");
}
NSDictionary *postDictionary = @{@"guid" : guid, @"app_uuid": appUuid, @"ticket": ticket};
// NSDictionary *postDictionary = @{@"guid" : guid, @"app_uuid": appUuid, @"ticket": ticket};
NSMutableDictionary* postDictionary = [[NSMutableDictionary alloc] init];
[postDictionary setValue:guid forKey:@"guid"];
[postDictionary setValue:appUuid forKey:@"app_uuid"];
[postDictionary setValue:ticket forKey:@"ticket"];
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL];
[self sendContext10:jsonData successBlock:^(NSDictionary *contextResponse) {
NSDictionary* tokens = [NSDictionary alloc];
......@@ -2467,7 +2472,11 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
{
// NSString* appUuid = [NSString alloc];
// appUuid = [WLKeychain getStringForKey:@"NBAPPUuid"];
NSDictionary *postDictionary = @{@"user_identifier" : guid};
// NSDictionary *postDictionary = @{@"user_identifier" : guid};
NSMutableDictionary* postDictionary = [[NSMutableDictionary alloc] init];
[postDictionary setValue:guid forKey:@"user_identifier"];
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDictionary options:0 error:NULL];
[self sendContextGetCosmoteUser:jsonData successBlock:^(NSDictionary *contextResponse) {
NSDictionary* tokens = [NSDictionary alloc];
......