new file: app.py new file: app/ali_oss.py new file: app/app.py new file: app/app_common.py new file: app/config.py new file: app/coze.py new file: app/generate_api.py new file: app/html_crypto.py new file: app/main.py new file: app/web_source/admin.html new file: app/web_source/brand.html new file: app/web_source/home.html new file: app/web_source/index.html new file: app/web_source/login.html new file: app_common.py new file: blueprints/__init__.py new file: blueprints/__pycache__/__init__.cpython-311.pyc new file: blueprints/__pycache__/__init__.cpython-39.pyc new file: blueprints/__pycache__/admin.cpython-311.pyc new file: blueprints/__pycache__/admin.cpython-39.pyc new file: blueprints/__pycache__/auth.cpython-311.pyc new file: blueprints/__pycache__/auth.cpython-39.pyc new file: blueprints/__pycache__/brand.cpython-311.pyc new file: blueprints/__pycache__/brand.cpython-39.pyc new file: blueprints/__pycache__/image.cpython-311.pyc new file: blueprints/__pycache__/image.cpython-39.pyc new file: blueprints/__pycache__/main.cpython-311.pyc new file: blueprints/__pycache__/main.cpython-39.pyc new file: blueprints/admin.py new file: blueprints/auth.py new file: blueprints/brand.py new file: blueprints/image.py new file: blueprints/main.py new file: brand_spider/__pycache__/main.cpython-39.pyc new file: brand_spider/__pycache__/web_dec.cpython-39.pyc new file: brand_spider/main.py new file: brand_spider/web_dec.py new file: config.py new file: coze.py new file: generate_api.py new file: html_crypto.py new file: main.py new file: static/bg.jpg new file: "static/\345\223\201\347\211\214\346\226\207\346\241\243\346\240\274\345\274\217_\346\250\241\346\235\277.xlsx" new file: "static/\346\250\241\346\235\2772-\344\273\245\346\226\207\344\273\266\345\244\271\346\226\271\345\274\217\344\270\212\344\274\240.zip" new file: tool/.device_id new file: tool/__pycache__/devices.cpython-311.pyc new file: tool/__pycache__/devices.cpython-39.pyc new file: tool/devices.py
47 lines
1.4 KiB
Python
47 lines
1.4 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"
|
|
|
|
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 = True
|
|
version = "1.0.3"
|
|
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
|
|
|
|
|
|
|