fix 资源包更新Bug

This commit is contained in:
jxxghp 2024-03-16 18:38:25 +08:00
parent f345d94009
commit aaa1b80edf
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class ResourceHelper(metaclass=Singleton):
target = resource.get("target")
version = resource.get("version")
# 判断平台
if platform and platform != SystemUtils.platform:
if platform and platform != SystemUtils.platform():
continue
# 判断本地是否存在
local_path = self._base_dir / target / rname

View File

@ -71,8 +71,8 @@ class SystemUtils:
"""
return True if platform.machine() == 'aarch64' else False
@property
def platform(self) -> str:
@staticmethod
def platform() -> str:
"""
获取系统平台
"""