fix: 修复Swagger文档生成和API路径配置

- 修复generate-swagger-json.ts中API前缀配置,与main.ts保持一致
- 修复content-moderation.controller.ts中重复的API前缀
- 更新Swagger配置从环境变量获取服务地址
- 重新生成API文档确保路径正确
This commit is contained in:
imeepos
2025-09-05 18:30:50 +08:00
parent 37f4d8e7c6
commit 8ea6e4ed61
6 changed files with 1268 additions and 157 deletions

View File

@@ -4,30 +4,30 @@ DB_PORT=53305
DB_USERNAME=root
DB_PASSWORD=WsJWXfwFx0bq6DE2kmB6
DB_DATABASE=nano_camera_miniapp
DB_LOGGING=true
DB_MIGRATIONS_RUN=true
DB_LOGGING=false
DB_MIGRATIONS_RUN=false
# 应用配置
NODE_ENV=development
PORT=3000
PORT=3003
# N8N配置
N8N_WEBHOOK_URL=https://n8n.bowongai.com/webhook/76f92dbf-785f-4add-96b5-a108174b7c14
N8N_WEBHOOK_URL=https://n8n.bowongai.com/webhook/f1487ca8-bc49-4994-ba82-e2bcb95931f9
# JWT配置
JWT_SECRET=your_jwt_secret_key_here
JWT_SECRET=a6e4d948295ec0ae53921d67d4ce97cfff0565073e370d6094e43705cd48914b68d383feba8b6bcc8e113b090b6d4e5b306cf8b758c71aff7c0910ecb2bacfb8
# 微信小程序配置
WECHAT_APP_ID=your_wechat_app_id
WECHAT_APP_ID=wxb51f0b0c3aad7cdf
WECHAT_APP_SECRET=your_wechat_app_secret
# 抖音小程序配置
BYTEDANCE_APP_ID=your_bytedance_app_id
BYTEDANCE_APP_SECRET=your_bytedance_app_secret
BYTEDANCE_APP_ID=ttbfd9c96420ec8f8201
BYTEDANCE_APP_SECRET=04a026867fbd1ba52174c7c21d94cbc7361ec378
# 内容审核配置
# 图片审核回调地址(重要:抖音审核完成后会调用此接口)
AUDIT_CALLBACK_URL=https://your-domain.com/api/v1/content-moderation/callback
AUDIT_CALLBACK_URL=https://sd2s2bl25ni4n75na2bog.apigateway-cn-beijing.volceapi.com/api/v1/content-moderation/bytedance/callback
# 抖音内容审核API地址
BYTEDANCE_AUDIT_API_URL=https://developer.toutiao.com/api/apps/v2/content/audit/image