优化: 1. 修复SSL警告问题 2. 优化加载对话框显示逻辑 3. 添加API测试工具
This commit is contained in:
5
main.py
5
main.py
@@ -5,12 +5,17 @@ import os
|
||||
import atexit
|
||||
import shutil
|
||||
import tempfile
|
||||
import urllib3
|
||||
from pathlib import Path
|
||||
from PyQt5.QtWidgets import QApplication, QMessageBox, QSystemTrayIcon, QMenu
|
||||
from PyQt5.QtGui import QIcon
|
||||
from PyQt5.QtCore import Qt
|
||||
from gui.main_window import MainWindow
|
||||
|
||||
# 禁用所有 SSL 相关警告
|
||||
urllib3.disable_warnings()
|
||||
logging.getLogger('urllib3').setLevel(logging.ERROR)
|
||||
|
||||
def cleanup_temp():
|
||||
"""清理临时文件"""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user