fix: update API endpoint from newapi.sususu.cf to api2.xcodecli.com in scripts and documentation
This commit is contained in:
@@ -41,7 +41,7 @@ XCodeCLI-Shells 是一个智能配置工具集,用于设置 Claude Code 与 XC
|
|||||||
### 支持的 API 端点
|
### 支持的 API 端点
|
||||||
脚本会按顺序测试以下端点,选择第一个可用的:
|
脚本会按顺序测试以下端点,选择第一个可用的:
|
||||||
1. `https://api.xcodecli.com`
|
1. `https://api.xcodecli.com`
|
||||||
2. `https://newapi.sususu.cf`
|
2. `https://api2.xcodecli.com`
|
||||||
|
|
||||||
## 常用命令
|
## 常用命令
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
#### Windows (PowerShell)
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ sudo dnf install jq
|
|||||||
> **自动端点发现**: 脚本会自动测试以下端点并选择第一个可用的:
|
> **自动端点发现**: 脚本会自动测试以下端点并选择第一个可用的:
|
||||||
>
|
>
|
||||||
> - `https://api.xcodecli.com`
|
> - `https://api.xcodecli.com`
|
||||||
> - `https://newapi.sususu.cf`
|
> - `https://api2.xcodecli.com`
|
||||||
|
|
||||||
### Bash 脚本参数
|
### Bash 脚本参数
|
||||||
|
|
||||||
|
|||||||
@@ -279,7 +279,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="notice">
|
<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>
|
||||||
|
|
||||||
<div class="input-section">
|
<div class="input-section">
|
||||||
|
|||||||
@@ -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:
|
This script automatically tests multiple API endpoints and selects the working one:
|
||||||
- https://api.xcodecli.com
|
- https://api.xcodecli.com
|
||||||
- https://newapi.sususu.cf
|
- https://api2.xcodecli.com
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-ApiKey <KEY> Set the API key
|
-ApiKey <KEY> Set the API key
|
||||||
@@ -113,7 +113,7 @@ function Test-ApiConnection {
|
|||||||
|
|
||||||
$testUrls = @(
|
$testUrls = @(
|
||||||
"https://api.xcodecli.com",
|
"https://api.xcodecli.com",
|
||||||
"https://newapi.sususu.cf"
|
"https://api2.xcodecli.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
Write-Info "Testing API connections..."
|
Write-Info "Testing API connections..."
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ test_api_connection() {
|
|||||||
|
|
||||||
local test_urls=(
|
local test_urls=(
|
||||||
"https://api.xcodecli.com"
|
"https://api.xcodecli.com"
|
||||||
"https://newapi.sususu.cf"
|
"https://api2.xcodecli.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
print_info "Testing API connections..." >&2
|
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:
|
This script automatically tests multiple API endpoints and selects the working one:
|
||||||
- https://api.xcodecli.com
|
- https://api.xcodecli.com
|
||||||
- https://newapi.sususu.cf
|
- https://api2.xcodecli.com
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-k, --key KEY Set the API key
|
-k, --key KEY Set the API key
|
||||||
|
|||||||
Reference in New Issue
Block a user