From dbea04aa17f42992f40da030e75d38a3d831f44c Mon Sep 17 00:00:00 2001 From: sususu Date: Wed, 12 Nov 2025 16:13:58 +0800 Subject: [PATCH] fix: update API endpoint from newapi.sususu.cf to api2.xcodecli.com in scripts and documentation --- CLAUDE.md | 2 +- README.md | 4 ++-- quick-start.html | 2 +- setup-claude-code.ps1 | 4 ++-- setup-claude-code.sh | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8ce7473..4c3cbb1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -41,7 +41,7 @@ XCodeCLI-Shells 是一个智能配置工具集,用于设置 Claude Code 与 XC ### 支持的 API 端点 脚本会按顺序测试以下端点,选择第一个可用的: 1. `https://api.xcodecli.com` -2. `https://newapi.sususu.cf` +2. `https://api2.xcodecli.com` ## 常用命令 diff --git a/README.md b/README.md index 2406306..6e537e7 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ XCodeCLI-Shells 是一个跨平台的配置工具集,用于设置 Claude Code ### 🚀 一行命令快速配置 -> **注意**: 请将 `YOUR_API_KEY` 替换为您的实际 API 密钥。脚本会自动测试 `https://api.xcodecli.com` 和 `https://newapi.sususu.cf`,选择可用的端点。 +> **注意**: 请将 `YOUR_API_KEY` 替换为您的实际 API 密钥。脚本会自动测试 `https://api.xcodecli.com` 和 `https://api2.xcodecli.com`,选择可用的端点。 #### Windows (PowerShell) @@ -151,7 +151,7 @@ sudo dnf install jq > **自动端点发现**: 脚本会自动测试以下端点并选择第一个可用的: > > - `https://api.xcodecli.com` -> - `https://newapi.sususu.cf` +> - `https://api2.xcodecli.com` ### Bash 脚本参数 diff --git a/quick-start.html b/quick-start.html index 383a685..77c59d5 100644 --- a/quick-start.html +++ b/quick-start.html @@ -279,7 +279,7 @@
- 📝 注意: 请将 YOUR_API_KEY 替换为您的实际 API 密钥。脚本会自动测试 https://api.xcodecli.comhttps://newapi.sususu.cf,选择可用的端点。 + 📝 注意: 请将 YOUR_API_KEY 替换为您的实际 API 密钥。脚本会自动测试 https://api.xcodecli.comhttps://api2.xcodecli.com,选择可用的端点。
diff --git a/setup-claude-code.ps1 b/setup-claude-code.ps1 index 284ee50..30f00df 100644 --- a/setup-claude-code.ps1 +++ b/setup-claude-code.ps1 @@ -52,7 +52,7 @@ Usage: powershell -ExecutionPolicy Bypass -File setup-claude-code.ps1 [OPTIONS] This script automatically tests multiple API endpoints and selects the working one: - https://api.xcodecli.com - - https://newapi.sususu.cf + - https://api2.xcodecli.com Options: -ApiKey Set the API key @@ -113,7 +113,7 @@ function Test-ApiConnection { $testUrls = @( "https://api.xcodecli.com", - "https://newapi.sususu.cf" + "https://api2.xcodecli.com" ) Write-Info "Testing API connections..." diff --git a/setup-claude-code.sh b/setup-claude-code.sh index c21914f..c9b85fc 100644 --- a/setup-claude-code.sh +++ b/setup-claude-code.sh @@ -80,7 +80,7 @@ test_api_connection() { local test_urls=( "https://api.xcodecli.com" - "https://newapi.sususu.cf" + "https://api2.xcodecli.com" ) print_info "Testing API connections..." >&2 @@ -207,7 +207,7 @@ Usage: $0 [OPTIONS] This script automatically tests multiple API endpoints and selects the working one: - https://api.xcodecli.com - - https://newapi.sususu.cf + - https://api2.xcodecli.com Options: -k, --key KEY Set the API key