Skip to content

Commit 2661dea

Browse files
committed
fix:修复错误分割
1 parent beffd9a commit 2661dea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/utils/update.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,12 @@ def github_download(self, update_dict: Dict):
683683
with open(version_file_path, "r") as version_file:
684684
v_data = version_file.read().split()
685685
logger.debug(f"版本数据: {v_data}")
686-
version = v_data[2]
686+
version = v_data[2][1:]
687687
arch = v_data[1]
688688
os_type = v_data[0]
689+
logger.debug(f"当前版本: {version}")
690+
logger.debug(f"当前架构: {arch}")
691+
logger.debug(f"当前系统: {os_type}")
689692

690693
except FileNotFoundError:
691694
logger.exception("版本文件未找到")

0 commit comments

Comments
 (0)