You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
562 B
18 lines
562 B
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
|
|
import 'network/dio_manager.dart';
|
|
|
|
/// 连着测试服时,AI 只走科大讯飞。微软、阿里、字节、谷歌、灵犀都不要发请求。
|
|
///
|
|
/// 正式域名不进这把锁。密钥还在本地缓存里也不许拿去调别家。
|
|
bool get aiOnlyIflytek {
|
|
final hosts = <String>[
|
|
DioManager().baseUrl,
|
|
dotenv.env['SERVER_URL'] ?? '',
|
|
dotenv.env['HW_SERVER_URL'] ?? '',
|
|
];
|
|
for (final host in hosts) {
|
|
if (host.contains('ym-dev.ymaikj.com')) return true;
|
|
}
|
|
return false;
|
|
}
|
|
|