46 lines
1.5 KiB
TypeScript
46 lines
1.5 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 =
|
|
"https://www.banlv-ai.com/cozsweet/membership-agreement.html";
|
|
|
|
/** 自动续费服务协议文档链接 */
|
|
static readonly autoRenewalAgreementUrl =
|
|
"https://www.banlv-ai.com/cozsweet/auto-renewal-agreement.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";
|
|
}
|
|
}
|