D140: require Kling key from environment
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled

This commit is contained in:
冰朔 2026-06-22 20:39:29 +08:00
parent b924782ef7
commit 7a59722b28

View File

@ -15,8 +15,8 @@ const fs = require('fs');
const path = require('path');
const https = require('https');
// ═══ 从环境变量或默认读取 ═══
const API_KEY = process.env.KLING_API_KEY || 'api-key-kling-x-6H9AH4VeTP986fQxXb8qhQ_ovU_QGaKzF6FX8A-iY';
// ═══ 从环境变量读取 ═══
const API_KEY = process.env.KLING_API_KEY || '';
const BASE_URL = 'api-beijing.klingai.com';
const POLL_INTERVAL = 2000;
const MAX_POLL = 180;