91kaquan 初步介入

This commit is contained in:
yml
2026-05-04 22:05:54 +08:00
parent f4cc2ce623
commit b120924263
12 changed files with 1273 additions and 3 deletions
+35
View File
@@ -235,6 +235,41 @@ function applyEnvOverrides(baseConfig) {
nextConfig.platforms.agiso.messaging.enabled = agisoMessagingEnabled
}
const ninetyoneUserId = String(process.env.NINETYONE_USER_ID || '').trim()
if (ninetyoneUserId) {
nextConfig.platforms.ninetyone.userId = ninetyoneUserId
}
const ninetyoneSecret = String(process.env.NINETYONE_SECRET || '').trim()
if (ninetyoneSecret) {
nextConfig.platforms.ninetyone.secret = ninetyoneSecret
}
const ninetyoneVersion = String(process.env.NINETYONE_VERSION || '').trim()
if (ninetyoneVersion) {
nextConfig.platforms.ninetyone.version = ninetyoneVersion
}
const ninetyoneShopId = String(process.env.NINETYONE_SHOP_ID || '').trim()
if (ninetyoneShopId) {
nextConfig.platforms.ninetyone.shopId = ninetyoneShopId
}
const ninetyoneShopName = String(process.env.NINETYONE_SHOP_NAME || '').trim()
if (ninetyoneShopName) {
nextConfig.platforms.ninetyone.shopName = ninetyoneShopName
}
const ninetyoneTimestampToleranceSeconds = parseInteger(process.env.NINETYONE_TIMESTAMP_TOLERANCE_SECONDS)
if (ninetyoneTimestampToleranceSeconds !== null) {
nextConfig.platforms.ninetyone.timestampToleranceSeconds = ninetyoneTimestampToleranceSeconds
}
const ninetyoneCardsEncoding = String(process.env.NINETYONE_CARDS_ENCODING || '').trim()
if (ninetyoneCardsEncoding) {
nextConfig.platforms.ninetyone.cardsEncoding = ninetyoneCardsEncoding
}
const khhaoBaseUrl = String(process.env.KHHAO_BASE_URL || '').trim()
if (khhaoBaseUrl) {
nextConfig.platforms.khhao.baseUrl = khhaoBaseUrl