This commit is contained in:
2026-07-01 20:21:51 +08:00
parent aea1513836
commit ef6cc18fb2
8 changed files with 178 additions and 20 deletions
+3
View File
@@ -7,6 +7,8 @@ export interface AppConfig {
wechatAuthEnabled: boolean;
wechatPayEnabled: boolean;
wxAppId: string;
/** OSS_ENABLED=true 且 AccessKey/Bucket 齐全时走阿里云直传 */
ossEnabled: boolean;
}
export function loadAppConfig(env?: Record<string, string | undefined>): AppConfig {
@@ -23,5 +25,6 @@ export function loadAppConfig(env?: Record<string, string | undefined>): AppConf
wechatAuthEnabled: e.WECHAT_AUTH_ENABLED === 'true',
wechatPayEnabled: e.WECHAT_PAY_ENABLED === 'true' || e.MOCK_PAY === 'false',
wxAppId: e.WX_APP_ID ?? '',
ossEnabled: e.OSS_ENABLED === 'true',
};
}