diff --git a/src-tauri/src/commands/auth.rs b/src-tauri/src/commands/auth.rs index 357811a..3d6103f 100644 --- a/src-tauri/src/commands/auth.rs +++ b/src-tauri/src/commands/auth.rs @@ -719,7 +719,7 @@ pub async fn oauth_get_storage_usage( let client = &state_guard.http_client; let response = client - .get("https://appwrite.sectl.cn/api/cloud-storage/usage") + .get("https://appwrite.sectl.cn/api/cloud/storage/usage") .query(&[("client_id", platform_id), ("user_id", user_id)]) .header("Authorization", format!("Bearer {}", access_token)) .send() diff --git a/src/services/sectlAuth.ts b/src/services/sectlAuth.ts index 119d98c..7022a1d 100644 --- a/src/services/sectlAuth.ts +++ b/src/services/sectlAuth.ts @@ -8,7 +8,7 @@ export const SECTL_CONFIG = { baseUrl: "https://appwrite.sectl.cn", authUrl: "https://sectl.cn", - platformId: "", + platformId: "", // 需要在设置中配置 callbackUrl: "secscore://oauth", callbackPort: 5173, }