Files
2026-09-15 15:44:13 +07:00

73 lines
2.7 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 innerVersion = '1.0.0';
static const isDebug = false;
/// 播放失败诊断开关:失败时把现场信息复制到剪贴板,供用户回传排查。
/// ⚠️ 测试包专用,**发正式包前必须改回 false**
static const playDiagnose = false;
// ===== 密钥 =====
/// 加密密钥
static const encryptKey = '65dc07d1b7915c6b2937432b091837a7';
/// 签名密钥(防重放攻击)
static const signKey = 'kaFtkDJRcchRMTI9';
// ===== 域名 / 线路 =====
static String dns = '91porn.zmnchs.com'; // 运维提供,返回配置域名
/// 本地兜底线路(无本地缓存线路时用)
static const lineList = isDebug
? [
'https://91pornht.remoces.com',
]
: [
'https://d1s84171319hi1.cloudfront.net',
'https://d2j97wqe01j5pa.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<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 isStoreOpen = false; // 商店模块开关
static bool vipMark = true; // vip角标是否展示
static bool coinMark = true; // 金币角标是否展示
static bool freeMark = true; // 免费类角标总开关(如「免费试看」)
static String? signIcon; // 签到
static String? mineBg; // 我的背景配置
}