isConfigValid static method

bool isConfigValid()

Implementation

static bool isConfigValid() {
  if (cert == 'YOUR_CERT_HERE' || cert.isEmpty) {
    print('❌ 错误: 请在 test_config.dart 中配置正确的 cert');
    return false;
  }

  if (baseUrl.isEmpty) {
    print('❌ 错误: 请配置 baseUrl');
    return false;
  }

  if (userId <= 0) {
    print('❌ 错误: 请配置有效的 userId');
    return false;
  }

  return true;
}