import 'package:flutter/foundation.dart'; /// petsHeroAI API 配置 abstract final class ApiConfig { /// AES 密钥 static const String aesKey = 'liyP4LkMfP68XvCt'; /// 应用 ID static const String appId = 'com.petsheroai.app'; /// 应用包名 static const String packageName = 'com.petsheroai.app'; /// 预发环境域名 static const String preBaseUrl = 'https://pre-ai.petsheroai.xyz'; /// 生产环境域名 static const String prodBaseUrl = 'https://ai.petsheroai.xyz'; /// 代理入口路径 static const String proxyPath = '/quester/defender/summoner'; /// 调试时本地代理地址(手机无法直连域名时,用电脑做转发) /// 例如: 'http://192.168.1.100:8010'(电脑 IP) /// 设为 null 则直连预发域名 static const String? debugBaseUrlOverride = null; /// 当前使用的 baseUrl(调试用预发,打包用生产) static String get baseUrl { if (!kDebugMode) return prodBaseUrl; return debugBaseUrlOverride ?? preBaseUrl; } /// 代理入口完整 URL static String get proxyUrl => '$baseUrl$proxyPath'; }