new file: assets/_plugin-vue_export-helper-xvHHTGU_.css new file: assets/convert-1dkFPbKa.css new file: assets/convert-6b0yq-M0.css new file: assets/convert-BxkpMHO9.css new file: assets/convert-D4Yv2oRy.css new file: assets/convert-DwbQug2y.css modified: assets/convert.js new file: assets/dedupe-B0eqpVpj.css new file: assets/dedupe-BHE_BCAJ.css new file: assets/dedupe-Day_nGxq.css new file: assets/dedupe-DzFvTfoj.css new file: assets/dedupe-rhGu1E8E.css modified: assets/dedupe.js new file: assets/el-alert-Ct0RpqUD.css new file: assets/pywebview-B6ZNXusn.css new file: assets/pywebview-BRrok0pS.js new file: assets/pywebview-BnpJyyGZ.js new file: assets/pywebview-CGwF8TuM.js new file: assets/pywebview-Chz98E9c.css new file: assets/pywebview-D-PKWjUg.js new file: assets/pywebview-DVgP2-kW.js new file: assets/pywebview-IqgMfeBe.css new file: assets/pywebview-Rm5Hhqpf.js new file: assets/pywebview-leZCedEt.js new file: assets/split-BsJfbBqn.css new file: assets/split-DAa_Usoh.css new file: assets/split-DidKJ84l.css new file: assets/split-R_8V5xgh.css new file: assets/split-_O6NHqDj.css modified: assets/split.js modified: blueprints/__pycache__/brand.cpython-311.pyc modified: blueprints/__pycache__/brand.cpython-39.pyc modified: blueprints/brand.py modified: config.py modified: main.py modified: new_web_source/convert.html modified: new_web_source/dedupe.html modified: new_web_source/split.html
49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
base_url = "https://api.coze.cn/v1"
|
|
coze_token = "sat_12nW40INoJxArrDXbY4lSCoudbqkOYTcphC99BP2efWyzxmsk4q81WDX3ezWgqZ5"
|
|
workflow_id = "7608812635877900322"
|
|
STITCH_WORKFLOW_ID = "7608813873483300907"
|
|
|
|
import os
|
|
from dotenv import load_dotenv
|
|
load_dotenv()
|
|
_base_url = os.getenv("base_url","http://159.75.121.33:15124")
|
|
|
|
# MySQL 配置
|
|
mysql_host = os.getenv("mysql_host")
|
|
mysql_user = os.getenv("mysql_user")
|
|
mysql_password = os.getenv("mysql_password","WTFrb5y6hNLz6hNy")
|
|
mysql_database = os.getenv("mysql_database","aiimage")
|
|
proxy_url = os.getenv("proxy_url")
|
|
proxy_mode = int(os.getenv("proxy_mode",1))
|
|
|
|
client_name=os.getenv("client_name") + ".exe"
|
|
JAVA_API_BASE = os.getenv("java_api_base", "http://127.0.0.1:18080")
|
|
|
|
|
|
cache_path = "./user_data"
|
|
|
|
region = "cn-hangzhou"
|
|
endpoint = "oss-cn-hangzhou.aliyuncs.com"
|
|
bucket = "nanri-ai-images"
|
|
accessKeyId = "LTAI5tNpyvzMNz9f2dHarsm8"
|
|
accessKeySecret = "bQSZnFH455i8tzyOgeahJmUzwmhynz"
|
|
bucket_path = "nanri-image/"
|
|
|
|
file_url_pre = f"https://{bucket}.oss-cn-hangzhou.aliyuncs.com/"
|
|
|
|
|
|
|
|
os.environ['OSS_ACCESS_KEY_ID'] = accessKeyId
|
|
os.environ['OSS_ACCESS_KEY_SECRET'] = accessKeySecret
|
|
os.environ['SECRET_KEY'] = "ddffc7c1d02121d9554d7b080b2511b6"
|
|
|
|
|
|
debug = False
|
|
version = "1.0.17"
|
|
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
|
|
|
|
|
|
|