String env(String name) { if (Platform.environment[name] == null) { logger.log('$name 环境变量未配置', status: LogStatus.error); exit(1); } return Platform.environment[name]!; }