Merge branch 'master' of https://gitee.com/TeaCodeNice/crawler-plugin
This commit is contained in:
@@ -14,7 +14,6 @@ def upload_file(file_content: bytes, key: str):
|
|||||||
cfg.credentials_provider = credentials_provider
|
cfg.credentials_provider = credentials_provider
|
||||||
cfg.region = region
|
cfg.region = region
|
||||||
cfg.endpoint = endpoint
|
cfg.endpoint = endpoint
|
||||||
cfg.retry_max_attempts = 3
|
|
||||||
client = oss.Client(cfg)
|
client = oss.Client(cfg)
|
||||||
|
|
||||||
result = client.put_object(
|
result = client.put_object(
|
||||||
|
|||||||
+2
-5
@@ -49,8 +49,8 @@ os.environ['OSS_ACCESS_KEY_SECRET'] = accessKeySecret
|
|||||||
os.environ['SECRET_KEY'] = "ddffc7c1d02121d9554d7b080b2511b6"
|
os.environ['SECRET_KEY'] = "ddffc7c1d02121d9554d7b080b2511b6"
|
||||||
|
|
||||||
|
|
||||||
debug = True
|
debug = False
|
||||||
version = "1.0.13"
|
version = "1.0.56"
|
||||||
APP_UPDATE_URL = f"{_base_url}/api/version/latest" # 检测更新接口地址,返回 { "file_url": "...", "version": "x.x.x" }
|
APP_UPDATE_URL = f"{_base_url}/api/version/latest" # 检测更新接口地址,返回 { "file_url": "...", "version": "x.x.x" }
|
||||||
os.environ['APP_VERSION'] = version
|
os.environ['APP_VERSION'] = version
|
||||||
os.environ['APP_UPDATE_URL'] = APP_UPDATE_URL
|
os.environ['APP_UPDATE_URL'] = APP_UPDATE_URL
|
||||||
@@ -59,9 +59,6 @@ os.environ['APP_UPDATE_URL'] = APP_UPDATE_URL
|
|||||||
# 队列
|
# 队列
|
||||||
JSON_TASK_QUEUE = Queue()
|
JSON_TASK_QUEUE = Queue()
|
||||||
|
|
||||||
|
|
||||||
base_dir = os.getcwd()
|
|
||||||
|
|
||||||
#删除品牌,正在执行中的任务
|
#删除品牌,正在执行中的任务
|
||||||
runing_task = {
|
runing_task = {
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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,
|
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)
|
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(
|
webview.start(
|
||||||
debug=True,
|
debug=False,
|
||||||
storage_path=cache_path,
|
storage_path=cache_path,
|
||||||
private_mode=False
|
private_mode=False
|
||||||
)
|
)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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 ^<?xml version="1.0" encoding="utf-8" ?^>
|
||||||
|
echo ^<configuration^>
|
||||||
|
echo ^<runtime^>
|
||||||
|
echo ^<loadFromRemoteSources enabled="true"/^>
|
||||||
|
echo ^</runtime^>
|
||||||
|
echo ^</configuration^>
|
||||||
|
) > "ShuFuAi.exe.config"
|
||||||
|
|
||||||
|
if exist "ShuFuAi.exe.config" (
|
||||||
|
echo ShuFuAi.exe.config 创建成功
|
||||||
|
) else (
|
||||||
|
echo ShuFuAi.exe.config 创建失败,请检查权限
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo 操作完成!
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user