- Fix AccessToken ExpireDate
This commit is contained in:
parent
c23b1e0e38
commit
501e408aea
@ -55,7 +55,8 @@
|
|||||||
|
|
||||||
NSLog(@"%@",[accessToken JSONObject]);
|
NSLog(@"%@",[accessToken JSONObject]);
|
||||||
|
|
||||||
/*[[[PNObjectConfig sharedInstance] manager] GET:[[[PNObjectConfig sharedInstance] PNObjEndpoint] stringByAppendingString:[PNAccessToken PNObjClassName]] parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
|
|
||||||
|
[[[PNObjectConfig sharedInstance] manager] GET:[[[PNObjectConfig sharedInstance] PNObjEndpoint] stringByAppendingString:[PNAccessToken PNObjClassName]] parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
|
||||||
|
|
||||||
} success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
} success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
||||||
|
|
||||||
@ -72,7 +73,7 @@
|
|||||||
|
|
||||||
NSLog(@"%@",error);
|
NSLog(@"%@",error);
|
||||||
|
|
||||||
}];*/
|
}];
|
||||||
//NSLog(@"%@",userDictionary);
|
//NSLog(@"%@",userDictionary);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -82,7 +82,11 @@ static bool isFirstAccess = YES;
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_expiresIn) {
|
if (_expiresIn) {
|
||||||
_expirationDate = [[NSDate date] dateByAddingHours:[_expiresIn integerValue]];
|
NSLog(@"%ld",[_expiresIn integerValue]);
|
||||||
|
NSLog(@"%@",[NSDate date]);
|
||||||
|
NSLog(@"%@",[[NSDate date] dateByAddingMinutes:[_expiresIn integerValue]]);
|
||||||
|
NSLog(@"%@",[[NSDate date] dateByAddingMinutes:10000]);
|
||||||
|
_expirationDate = [[NSDate date] dateByAddingMinutes:[_expiresIn integerValue]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user