Private
Public Access
1
0

fix: update API endpoint from newapi.sususu.cf to api2.xcodecli.com in scripts and documentation

This commit is contained in:
2025-11-12 16:13:58 +08:00
parent a6a3bb5388
commit dbea04aa17
5 changed files with 8 additions and 8 deletions

View File

@@ -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`
## 常用命令

View File

@@ -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 脚本参数

View File

@@ -279,7 +279,7 @@
</div>
<div class="notice">
📝 <strong>注意</strong>: 请将 <code>YOUR_API_KEY</code> 替换为您的实际 API 密钥。脚本会自动测试 <code>https://api.xcodecli.com</code><code>https://newapi.sususu.cf</code>,选择可用的端点。
📝 <strong>注意</strong>: 请将 <code>YOUR_API_KEY</code> 替换为您的实际 API 密钥。脚本会自动测试 <code>https://api.xcodecli.com</code><code>https://api2.xcodecli.com</code>,选择可用的端点。
</div>
<div class="input-section">

View File

@@ -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 <KEY> 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..."

View File

@@ -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