增加 khhao 平台

This commit is contained in:
yml2213
2026-05-02 16:20:08 +08:00
parent 4a0003b29d
commit 8829652e9a
14 changed files with 1160 additions and 0 deletions
+25
View File
@@ -235,6 +235,31 @@ function applyEnvOverrides(baseConfig) {
nextConfig.platforms.agiso.messaging.enabled = agisoMessagingEnabled
}
const khhaoBaseUrl = String(process.env.KHHAO_BASE_URL || '').trim()
if (khhaoBaseUrl) {
nextConfig.platforms.khhao.baseUrl = khhaoBaseUrl
}
const khhaoTimeoutMs = parseInteger(process.env.KHHAO_TIMEOUT_MS)
if (khhaoTimeoutMs !== null) {
nextConfig.platforms.khhao.timeoutMs = khhaoTimeoutMs
}
const khhaoLoginPath = String(process.env.KHHAO_LOGIN_PATH || '').trim()
if (khhaoLoginPath) {
nextConfig.platforms.khhao.loginPath = khhaoLoginPath
}
const khhaoCaptchaPath = String(process.env.KHHAO_CAPTCHA_PATH || '').trim()
if (khhaoCaptchaPath) {
nextConfig.platforms.khhao.captchaPath = khhaoCaptchaPath
}
const khhaoOrderListPath = String(process.env.KHHAO_ORDER_LIST_PATH || '').trim()
if (khhaoOrderListPath) {
nextConfig.platforms.khhao.orderListPath = khhaoOrderListPath
}
const proofMode = String(process.env.TENCENT_REDEEM_PROOF_MODE || '').trim()
if (proofMode) {
nextConfig.redeem.proofMode = proofMode