1、优化更新逻辑
This commit is contained in:
shenzuqiang 2026-03-12 17:58:29 +08:00
parent 77931f6d8a
commit 10baf69f73
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<selectionStates> <selectionStates>
<SelectionState runConfigName="app"> <SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" /> <option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2026-03-12T08:19:46.116780300Z"> <DropdownSelection timestamp="2026-03-12T09:56:24.310095400Z">
<Target type="DEFAULT_BOOT"> <Target type="DEFAULT_BOOT">
<handle> <handle>
<DeviceId pluginId="PhysicalDevice" identifier="serial=Y5DELZR46DZTCI9D" /> <DeviceId pluginId="PhysicalDevice" identifier="serial=Y5DELZR46DZTCI9D" />

View File

@ -129,8 +129,8 @@ class MainActivity : ComponentActivity(), LoadingCallback {
when (event) { when (event) {
// 软件更新提示 // 软件更新提示
is GlobalEvent.ShowAppUpdateNotify -> { is GlobalEvent.ShowAppUpdateNotify -> {
val loginInfo = PreferenceUtil.getLoginInfos() val userConfigEntity = PreferenceUtil.getUserConfig()
if(loginInfo?.isNotEmpty() == true){ if(userConfigEntity != null){
showUpdateDialog = true showUpdateDialog = true
} }
} }
@ -287,7 +287,7 @@ class MainActivity : ComponentActivity(), LoadingCallback {
} }
if(showSplash){ if(showSplash){
val token = PreferenceUtil.getAccessToken() //val token = PreferenceUtil.getAccessToken()
// 未登录,显示登录页 // 未登录,显示登录页
//if (token.isNullOrEmpty() && loginViewModel.userConfigResult.value == null) { //if (token.isNullOrEmpty() && loginViewModel.userConfigResult.value == null) {
if(isLogout){// 退出登录后,显示登录页 if(isLogout){// 退出登录后,显示登录页