Files
2026-11-05 11:59:24 +07:00

81 lines
3.1 KiB
Dart

import '../hj_model/home/plate_model.dart';
import '../hj_model/splash/domain_source_model.dart';
/// 全局配置:常量 + 启动时由 /ping/domain 下发并缓存的运营配置
class Config {
// ===== 应用标识 =====
static const appName = '海角社区';
static const appId = 'JHAc-214'; // 埋点app id
static const innerVersion = '2.0.0';
static const isDebug = false;
/// 播放失败诊断开关:失败时把现场信息复制到剪贴板,供用户回传排查。
/// ⚠️ 测试包专用,**发正式包前必须改回 false**
static const playDiagnose = false;
// ===== 密钥 =====
/// 加密密钥
static const encryptKey = '65dc07d1b7915c6b2937432b091837a7';
/// 签名密钥(防重放攻击)
static const signKey = 'kaFtkDJRcchRMTI9';
// ===== 域名 / 线路 =====
static String dns = 'hjsq.mfcg.it.com'; // 运维提供,返回配置域名(TXT 查询,只填域名不带 https://)
/// 本地兜底线路(无本地缓存线路时用)
static const lineList = isDebug
? [
'https://hjsqapi.mfcg.me',
]
: [
'https://d242u1qypvc8be.cloudfront.net',
'https://d12xmsn8xppraw.cloudfront.net',
];
// ===== AI 功能价格 =====
static String aiUndressPrice = ''; // 脱衣价格
static String aiVideoPrice = ''; // 图生视频价格
static String aiDrawPrice = ''; // 绘图价格
static String aiNovelPrice = ''; // 小说价格
static List<AISwitchConf>? aiTypes; // ai功能类型(含排序)
// ===== 首页模块数据 =====
static HomePlateModel? plateModule; // 亚模块数据
static List<JGAreaModel>? jgArea; // 金刚区
static List<MarqueeModel>? marquees; // 新版跑马灯数据
static List<MarqueeModel>? get marqueesActive {
// 新版跑马灯数据 激活的
return marquees?.where((e) => e.active == true).toList();
}
static List<BannerJumpEntity> bannerJumps = [];
static BannerJump? proxyBanner;
// ===== 搜索 =====
static List<String> hotWords = []; // 搜索热门词
static List<String> searchHints = []; // 搜索提示词
// ===== 暗网 =====
static bool darkWebEnable = true; // 是否开启
static String? darkWebVipName;
static String? darkWebVipId;
static String? darkWebImg; // 暗网图片
static String? darkWebIcon; // 暗网图标
static String? darkWebIconName; // 暗网图标名称
// ===== 短剧 =====
static String? shortDramaCardId; // 短剧卡 id,付费墙拉起会员弹窗时默认选中它
static bool entryPopupEnabled = true; // 「AI爽剧来袭」引导气泡开关,后台置 false 即永久不出现
static bool isDramaEntry =
false; // ping 的 defaultEntryPage==drama:启动直接落在短剧 tab
// ===== 开关 / 展示配置 =====
static bool isStoreOpen = false; // 商店模块开关
static bool vipMark = true; // vip角标是否展示
static bool coinMark = true; // 金币角标是否展示
static bool freeMark = true; // 免费类角标总开关(如「免费试看」)
static String? signIcon; // 签到
static String? mineBg; // 我的背景配置
}