增加 khhao 平台
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user