mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 01:38:21 +08:00
Fix: Check app keep alive on mumu >= 4.0
This commit is contained in:
@@ -350,6 +350,15 @@ class Connection(ConnectionAttr):
|
||||
logger.warning(f'Invalid nemud.app_keep_alive value: {res}')
|
||||
return False
|
||||
|
||||
@cached_property
|
||||
def is_mumu_over_version_400(self) -> bool:
|
||||
if not self.is_mumu_family:
|
||||
return False
|
||||
# >= 4.0 has no info in getprop
|
||||
if self.nemud_player_version == '':
|
||||
return True
|
||||
return False
|
||||
|
||||
@cached_property
|
||||
def is_mumu_over_version_356(self) -> bool:
|
||||
"""
|
||||
@@ -360,8 +369,7 @@ class Connection(ConnectionAttr):
|
||||
"""
|
||||
if not self.is_mumu_family:
|
||||
return False
|
||||
# >= 4.0 has no info in getprop
|
||||
if self.nemud_player_version == '':
|
||||
if self.is_mumu_over_version_400:
|
||||
return True
|
||||
if self.nemud_app_keep_alive != '':
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user