diff --git a/.gitignore b/.gitignore index 68af61b..1ec8bc0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ 123pan_config.json + download/* 123pan.txt dist/* @@ -7,4 +8,5 @@ build/* .idea/* 123pan.exe 123pan.spec -android.py \ No newline at end of file +android.py +__pycache__/ diff --git a/pan123_cli.py b/pan123_cli.py index c014322..5c75b49 100644 --- a/pan123_cli.py +++ b/pan123_cli.py @@ -355,6 +355,10 @@ class Pan123CLI: return elif choice == "3": self._download_mode = 3 + elif choice != "1": + # 非有效选项(1/2/3/4)一律取消,避免误覆盖 + print("无效选择,已取消下载") + return r = self.tool.download_file(idx, on_progress=self._download_progress, overwrite=True) print() # 换行