feat: AI套图分层方案 + Gemini集成 - 4种图案类型处理 + 正片叠底 + 宽高比 + 模型选择

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-07 16:59:56 +08:00
parent 12395d8eca
commit dae906aba7
277 changed files with 15009 additions and 19922 deletions

View File

@@ -8,6 +8,7 @@ from fastapi import APIRouter, Header, HTTPException
from datetime import date, timedelta
import pymysql
from app.core.database import get_db_connection
from app.core.config import settings
router = APIRouter()
@@ -15,8 +16,7 @@ router = APIRouter()
def verify_admin_token(token: str):
"""验证管理员Token"""
expected_token = "admin-secret-token"
if token != expected_token:
if token != settings.ADMIN_TOKEN:
raise HTTPException(status_code=401, detail="管理员Token无效")
# ==================== 统计功能 ====================