zjf
2023-03-13 881f0da670f20c401c1e1d08b36253abb28f72d2
token 过期 diss 和 pressent 间隔一下
1 files modified
7 ■■■■ changed files
IphoneBIMe/IphoneBIMe/Classes/Tools/PBNetworkTools.m 7 ●●●● patch | view | raw | blame | history
IphoneBIMe/IphoneBIMe/Classes/Tools/PBNetworkTools.m
@@ -151,9 +151,14 @@
    PBNetworkModel *networkModel = [PBNetworkModel yy_modelWithJSON:str];
    if ([networkModel.Msg isEqualToString:@"Token已过期"]) {
        [PBNoteCenter postNotificationName: PBNoteCenterDismissTabBarController object:nil];
        [PBNoteCenter postNotificationName:@"PBNoteCenterTokenExpired" object:nil];
        [self performSelector:@selector(toLogin) withObject:nil afterDelay:0.3f];
    }
}
- (void)toLogin {
    [PBNoteCenter postNotificationName:@"PBNoteCenterTokenExpired" object:nil];
}
#pragma mark =================================新接口=======================================
#pragma mark - 登录
- (void)loginWithUserName:(NSString *)userName andPassword:(NSString *)password andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack {