登录之后才有更新弹框

This commit is contained in:
fengshuo
2022-12-27 14:36:11 +08:00
parent b2888b586b
commit c7a093a84a

View File

@@ -124,7 +124,6 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
[[NIMSDK sharedSDK].chatManager addDelegate:self];
[[NIMSDK sharedSDK].systemNotificationManager addDelegate:self];
[[NIMSDK sharedSDK].broadcastManager addDelegate:self];
[self.presenter getVersionUpdate];
[self.presenter juliandAdCallBackApi];
[self networkReachability];
[self.view addSubview:self.roomMineView];
@@ -199,6 +198,8 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
[self.presenter getUserInfo];
///
[self.presenter checkTranscation];
///
[self.presenter getVersionUpdate];
if (self.inviteCode && self.inviteCode.length > 0) {
///
[self.presenter checkInviteUserInfo:self.inviteCode];
@@ -285,7 +286,6 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
{
[[NSNotificationCenter defaultCenter] postNotificationName:kNetworkReachabilityKey object:nil userInfo:nil];
[self.presenter autoLogin];
[self.presenter getVersionUpdate];
[[ClientConfig shareConfig] clientInit];
}
break;
@@ -476,7 +476,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
[self receiveBroadcastGift:attachment];
}else if(attachment.first == CustomMessageType_Version_Update && attachment.second == Custom_Message_Version_Update_Value){
NSString *osValue = attachment.data[@"updateOs"];
if([osValue isEqualToString:@"ios"]){
if([osValue isEqualToString:@"ios"] && [AccountInfoStorage instance].getUid.length > 0){
XPVersionUpdateModel *updateModel = [XPVersionUpdateModel modelWithDictionary:attachment.data];
[self getVersionUpdate:updateModel];
}