Skip to content

Commit

Permalink
model client ready
Browse files Browse the repository at this point in the history
  • Loading branch information
trawor committed Jan 12, 2014
1 parent 1822459 commit ab60c9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VZ/VZM.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (id)init

self.theme=[[NSUserDefaults standardUserDefaults] integerForKey:@"Theme"];

AVHTTPClient *client=[[AVHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"vz.avosapps.com"]];
AVHTTPClient *client=[[AVHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"http://vz.avosapps.com"]];
self.client=client;
}
return self;
Expand Down Expand Up @@ -98,6 +98,7 @@ -(void)login:(AVUserResultBlock)callback{
[currentInstallation saveInBackground];
}


callback(user,error);
}];
}
Expand Down Expand Up @@ -236,8 +237,7 @@ + (NSString *)parseClassName {
}

-(NSString*)wbid{
NSString *uid=nil;
[self validateValue:&uid forKeyPath:@"authData.weibo.uid" error:nil];
NSString *uid=self[@"authData"][@"weibo"][@"uid"];

return uid;
}
Expand Down

0 comments on commit ab60c9a

Please sign in to comment.