diff --git a/app/ali_oss.py b/app/ali_oss.py index 179faddf2..35fbe088e 100644 --- a/app/ali_oss.py +++ b/app/ali_oss.py @@ -14,7 +14,6 @@ def upload_file(file_content: bytes, key: str): cfg.credentials_provider = credentials_provider cfg.region = region cfg.endpoint = endpoint - cfg.retry_max_attempts = 3 client = oss.Client(cfg) result = client.put_object( diff --git a/app/config.py b/app/config.py index 0b5d8f96f..137cad8a3 100644 --- a/app/config.py +++ b/app/config.py @@ -49,8 +49,8 @@ os.environ['OSS_ACCESS_KEY_SECRET'] = accessKeySecret os.environ['SECRET_KEY'] = "ddffc7c1d02121d9554d7b080b2511b6" -debug = True -version = "1.0.13" +debug = False +version = "1.0.56" APP_UPDATE_URL = f"{_base_url}/api/version/latest" # 检测更新接口地址,返回 { "file_url": "...", "version": "x.x.x" } os.environ['APP_VERSION'] = version os.environ['APP_UPDATE_URL'] = APP_UPDATE_URL @@ -59,9 +59,6 @@ os.environ['APP_UPDATE_URL'] = APP_UPDATE_URL # 队列 JSON_TASK_QUEUE = Queue() - -base_dir = os.getcwd() - #删除品牌,正在执行中的任务 runing_task = { diff --git a/app/main.py b/app/main.py index 02867220f..08586b0b1 100644 --- a/app/main.py +++ b/app/main.py @@ -434,7 +434,7 @@ def main(): window.expose(api.close, api.minimize, api.maximize, api.toggle_maximize, generate_images, api.save_image, api.save_image_to_folder, api.select_folder, api.select_brand_xlsx_files, api.select_brand_folder, api.save_file_from_url, api.save_template_xlsx,api.save_template_zip,api.upload_file_to_java,api.open_external_url,api.enqueue_json,api.get_detail_del,api.save_file_from_url_new) webview.start( - debug=True, + debug=False, storage_path=cache_path, private_mode=False ) diff --git a/app/update/PyQt5/Qt/.keep_dir.txt b/app/update/PyQt5/Qt/.keep_dir.txt new file mode 100644 index 000000000..e69de29bb diff --git a/app/update/PyQt5/Qt5/.keep_dir.txt b/app/update/PyQt5/Qt5/.keep_dir.txt new file mode 100644 index 000000000..e69de29bb diff --git a/app/update/PyQt5/QtCore.pyd b/app/update/PyQt5/QtCore.pyd new file mode 100644 index 000000000..c376c68a4 Binary files /dev/null and b/app/update/PyQt5/QtCore.pyd differ diff --git a/app/update/PyQt5/QtGui.pyd b/app/update/PyQt5/QtGui.pyd new file mode 100644 index 000000000..338175994 Binary files /dev/null and b/app/update/PyQt5/QtGui.pyd differ diff --git a/app/update/PyQt5/QtWidgets.pyd b/app/update/PyQt5/QtWidgets.pyd new file mode 100644 index 000000000..5899382d6 Binary files /dev/null and b/app/update/PyQt5/QtWidgets.pyd differ diff --git a/app/update/PyQt5/qt-plugins/iconengines/qsvgicon.dll b/app/update/PyQt5/qt-plugins/iconengines/qsvgicon.dll new file mode 100644 index 000000000..cbca63c26 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/iconengines/qsvgicon.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qgif.dll b/app/update/PyQt5/qt-plugins/imageformats/qgif.dll new file mode 100644 index 000000000..b6e56585e Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qgif.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qicns.dll b/app/update/PyQt5/qt-plugins/imageformats/qicns.dll new file mode 100644 index 000000000..5b4365f44 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qicns.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qico.dll b/app/update/PyQt5/qt-plugins/imageformats/qico.dll new file mode 100644 index 000000000..d89a6378c Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qico.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qjpeg.dll b/app/update/PyQt5/qt-plugins/imageformats/qjpeg.dll new file mode 100644 index 000000000..98cdf9514 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qjpeg.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qsvg.dll b/app/update/PyQt5/qt-plugins/imageformats/qsvg.dll new file mode 100644 index 000000000..c6b732ba8 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qsvg.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qtga.dll b/app/update/PyQt5/qt-plugins/imageformats/qtga.dll new file mode 100644 index 000000000..d4f77f89b Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qtga.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qtiff.dll b/app/update/PyQt5/qt-plugins/imageformats/qtiff.dll new file mode 100644 index 000000000..43cbc0c41 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qtiff.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qwbmp.dll b/app/update/PyQt5/qt-plugins/imageformats/qwbmp.dll new file mode 100644 index 000000000..e1dc12c25 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qwbmp.dll differ diff --git a/app/update/PyQt5/qt-plugins/imageformats/qwebp.dll b/app/update/PyQt5/qt-plugins/imageformats/qwebp.dll new file mode 100644 index 000000000..3c49ed861 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/imageformats/qwebp.dll differ diff --git a/app/update/PyQt5/qt-plugins/mediaservice/dsengine.dll b/app/update/PyQt5/qt-plugins/mediaservice/dsengine.dll new file mode 100644 index 000000000..2f5bcc765 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/mediaservice/dsengine.dll differ diff --git a/app/update/PyQt5/qt-plugins/mediaservice/qtmedia_audioengine.dll b/app/update/PyQt5/qt-plugins/mediaservice/qtmedia_audioengine.dll new file mode 100644 index 000000000..adcf5bcc0 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/mediaservice/qtmedia_audioengine.dll differ diff --git a/app/update/PyQt5/qt-plugins/mediaservice/wmfengine.dll b/app/update/PyQt5/qt-plugins/mediaservice/wmfengine.dll new file mode 100644 index 000000000..c7aa07e82 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/mediaservice/wmfengine.dll differ diff --git a/app/update/PyQt5/qt-plugins/platforms/qminimal.dll b/app/update/PyQt5/qt-plugins/platforms/qminimal.dll new file mode 100644 index 000000000..c4bcfd899 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/platforms/qminimal.dll differ diff --git a/app/update/PyQt5/qt-plugins/platforms/qoffscreen.dll b/app/update/PyQt5/qt-plugins/platforms/qoffscreen.dll new file mode 100644 index 000000000..ad297839d Binary files /dev/null and b/app/update/PyQt5/qt-plugins/platforms/qoffscreen.dll differ diff --git a/app/update/PyQt5/qt-plugins/platforms/qwebgl.dll b/app/update/PyQt5/qt-plugins/platforms/qwebgl.dll new file mode 100644 index 000000000..5f317e500 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/platforms/qwebgl.dll differ diff --git a/app/update/PyQt5/qt-plugins/platforms/qwindows.dll b/app/update/PyQt5/qt-plugins/platforms/qwindows.dll new file mode 100644 index 000000000..e9c319d1c Binary files /dev/null and b/app/update/PyQt5/qt-plugins/platforms/qwindows.dll differ diff --git a/app/update/PyQt5/qt-plugins/platformthemes/qxdgdesktopportal.dll b/app/update/PyQt5/qt-plugins/platformthemes/qxdgdesktopportal.dll new file mode 100644 index 000000000..34c023180 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/platformthemes/qxdgdesktopportal.dll differ diff --git a/app/update/PyQt5/qt-plugins/printsupport/windowsprintersupport.dll b/app/update/PyQt5/qt-plugins/printsupport/windowsprintersupport.dll new file mode 100644 index 000000000..2e5017181 Binary files /dev/null and b/app/update/PyQt5/qt-plugins/printsupport/windowsprintersupport.dll differ diff --git a/app/update/PyQt5/qt-plugins/styles/qwindowsvistastyle.dll b/app/update/PyQt5/qt-plugins/styles/qwindowsvistastyle.dll new file mode 100644 index 000000000..c97acd62e Binary files /dev/null and b/app/update/PyQt5/qt-plugins/styles/qwindowsvistastyle.dll differ diff --git a/app/update/PyQt5/sip.pyd b/app/update/PyQt5/sip.pyd new file mode 100644 index 000000000..a8009c0c9 Binary files /dev/null and b/app/update/PyQt5/sip.pyd differ diff --git a/app/update/_bz2.pyd b/app/update/_bz2.pyd new file mode 100644 index 000000000..598aa1198 Binary files /dev/null and b/app/update/_bz2.pyd differ diff --git a/app/update/_ctypes.pyd b/app/update/_ctypes.pyd new file mode 100644 index 000000000..5905ec44f Binary files /dev/null and b/app/update/_ctypes.pyd differ diff --git a/app/update/_decimal.pyd b/app/update/_decimal.pyd new file mode 100644 index 000000000..1c4087d20 Binary files /dev/null and b/app/update/_decimal.pyd differ diff --git a/app/update/_elementtree.pyd b/app/update/_elementtree.pyd new file mode 100644 index 000000000..6ea5ee0c8 Binary files /dev/null and b/app/update/_elementtree.pyd differ diff --git a/app/update/_hashlib.pyd b/app/update/_hashlib.pyd new file mode 100644 index 000000000..8cd8b1ec7 Binary files /dev/null and b/app/update/_hashlib.pyd differ diff --git a/app/update/_lzma.pyd b/app/update/_lzma.pyd new file mode 100644 index 000000000..eb9b88e92 Binary files /dev/null and b/app/update/_lzma.pyd differ diff --git a/app/update/_socket.pyd b/app/update/_socket.pyd new file mode 100644 index 000000000..46083606c Binary files /dev/null and b/app/update/_socket.pyd differ diff --git a/app/update/libcrypto-1_1-x64.dll b/app/update/libcrypto-1_1-x64.dll new file mode 100644 index 000000000..0939c4084 Binary files /dev/null and b/app/update/libcrypto-1_1-x64.dll differ diff --git a/app/update/libeay32.dll b/app/update/libeay32.dll new file mode 100644 index 000000000..6cefeb1b9 Binary files /dev/null and b/app/update/libeay32.dll differ diff --git a/app/update/libffi-7.dll b/app/update/libffi-7.dll new file mode 100644 index 000000000..8fd2e5e07 Binary files /dev/null and b/app/update/libffi-7.dll differ diff --git a/app/update/msvcp140.dll b/app/update/msvcp140.dll new file mode 100644 index 000000000..5a1cb644e Binary files /dev/null and b/app/update/msvcp140.dll differ diff --git a/app/update/msvcp140_1.dll b/app/update/msvcp140_1.dll new file mode 100644 index 000000000..9ed52a26b Binary files /dev/null and b/app/update/msvcp140_1.dll differ diff --git a/app/update/psutil/_psutil_windows.pyd b/app/update/psutil/_psutil_windows.pyd new file mode 100644 index 000000000..6c73e3667 Binary files /dev/null and b/app/update/psutil/_psutil_windows.pyd differ diff --git a/app/update/pyexpat.pyd b/app/update/pyexpat.pyd new file mode 100644 index 000000000..cb7801c9b Binary files /dev/null and b/app/update/pyexpat.pyd differ diff --git a/app/update/python3.dll b/app/update/python3.dll new file mode 100644 index 000000000..1fe5788fd Binary files /dev/null and b/app/update/python3.dll differ diff --git a/app/update/python39.dll b/app/update/python39.dll new file mode 100644 index 000000000..829916314 Binary files /dev/null and b/app/update/python39.dll differ diff --git a/app/update/qt5dbus.dll b/app/update/qt5dbus.dll new file mode 100644 index 000000000..e06ebf307 Binary files /dev/null and b/app/update/qt5dbus.dll differ diff --git a/app/update/qt5multimedia.dll b/app/update/qt5multimedia.dll new file mode 100644 index 000000000..f4ea511e4 Binary files /dev/null and b/app/update/qt5multimedia.dll differ diff --git a/app/update/qt5network.dll b/app/update/qt5network.dll new file mode 100644 index 000000000..d32644d4a Binary files /dev/null and b/app/update/qt5network.dll differ diff --git a/app/update/qt5printsupport.dll b/app/update/qt5printsupport.dll new file mode 100644 index 000000000..de4c30b8a Binary files /dev/null and b/app/update/qt5printsupport.dll differ diff --git a/app/update/qt5qml.dll b/app/update/qt5qml.dll new file mode 100644 index 000000000..7c2e538a0 Binary files /dev/null and b/app/update/qt5qml.dll differ diff --git a/app/update/qt5qmlmodels.dll b/app/update/qt5qmlmodels.dll new file mode 100644 index 000000000..a0497d3ca Binary files /dev/null and b/app/update/qt5qmlmodels.dll differ diff --git a/app/update/qt5quick.dll b/app/update/qt5quick.dll new file mode 100644 index 000000000..4ff0bc608 Binary files /dev/null and b/app/update/qt5quick.dll differ diff --git a/app/update/qt5svg.dll b/app/update/qt5svg.dll new file mode 100644 index 000000000..edfbf4ac5 Binary files /dev/null and b/app/update/qt5svg.dll differ diff --git a/app/update/qt5websockets.dll b/app/update/qt5websockets.dll new file mode 100644 index 000000000..1b21504b7 Binary files /dev/null and b/app/update/qt5websockets.dll differ diff --git a/app/update/select.pyd b/app/update/select.pyd new file mode 100644 index 000000000..5b1522075 Binary files /dev/null and b/app/update/select.pyd differ diff --git a/app/update/ssleay32.dll b/app/update/ssleay32.dll new file mode 100644 index 000000000..0276bba18 Binary files /dev/null and b/app/update/ssleay32.dll differ diff --git a/app/update/unicodedata.pyd b/app/update/unicodedata.pyd new file mode 100644 index 000000000..77216c7bf Binary files /dev/null and b/app/update/unicodedata.pyd differ diff --git a/app/update/vcruntime140.dll b/app/update/vcruntime140.dll new file mode 100644 index 000000000..2e2bb47ea Binary files /dev/null and b/app/update/vcruntime140.dll differ diff --git a/app/update/vcruntime140_1.dll b/app/update/vcruntime140_1.dll new file mode 100644 index 000000000..dd0c10028 Binary files /dev/null and b/app/update/vcruntime140_1.dll differ diff --git a/app/winsrc.bat b/app/winsrc.bat new file mode 100644 index 000000000..28e3730ed --- /dev/null +++ b/app/winsrc.bat @@ -0,0 +1,38 @@ +@echo off +chcp 65001 >nul +setlocal enabledelayedexpansion + +echo 正在执行 PowerShell 命令解除文件锁定... +powershell -Command "Get-ChildItem -Path \"%cd%\" -Recurse | Unblock-File" +if %errorlevel% equ 0 ( + echo 文件解锁完成 +) else ( + echo 文件解锁失败,请检查 PowerShell 权限 +) + +echo. +echo 检查 ShuFuAi.exe.config 文件... + +if exist "ShuFuAi.exe.config" ( + echo ShuFuAi.exe.config 已存在,跳过创建 +) else ( + echo 正在创建 ShuFuAi.exe.config... + ( + echo ^ + echo ^ + echo ^ + echo ^ + echo ^ + echo ^ + ) > "ShuFuAi.exe.config" + + if exist "ShuFuAi.exe.config" ( + echo ShuFuAi.exe.config 创建成功 + ) else ( + echo ShuFuAi.exe.config 创建失败,请检查权限 + ) +) + +echo. +echo 操作完成! +pause \ No newline at end of file