Files
cozsweet-frontend-nextjs/src/core/app_constants.ts
T

46 lines
1.4 KiB
TypeScript

import { getAppEnv } from "@/core/net/config/api_config";
export class AppConstants {
private constructor() {}
/** 隐私政策文档链接 */
static readonly privacyPolicyUrl =
"https://www.banlv-ai.com/cozsweet/privacy-policy.html";
/** 服务条款文档链接 */
static readonly termsOfServiceUrl =
"https://www.banlv-ai.com/cozsweet/service-terms.html";
/** 会员服务协议文档链接 */
static readonly membershipAgreementUrl =
"/legal/vip-membership-benefits.html";
/** 自动续费服务协议文档链接 */
static readonly autoRenewalAgreementUrl =
"/legal/automatic-renewal.html";
/** 开发环境 APP 标题 */
static readonly appTitleDevelopment = "Develop";
/** 测试环境 APP 标题 */
static readonly appTitleTest = "Test";
/** 生产环境 APP 标题 */
static readonly appTitleProduction = "Cozsweet";
/** 根据当前环境获取 APP 标题 */
static get appTitle(): string {
const env = getAppEnv();
if (env === "production") return AppConstants.appTitleProduction;
if (env === "test") return AppConstants.appTitleTest;
return AppConstants.appTitleDevelopment;
}
/** APP 站点 URL(按环境区分:生产用主站域名,其余用前端测试域名) */
static get appUrl(): string {
return getAppEnv() === "production"
? "https://cozsweet.banlv-ai.com"
: "https://frontend-test.banlv-ai.com";
}
}