merge: resolve auth API endpoint conflicts

- 保留 token 刷新端点为 /api/oauth/refresh

- 修正云空间用量端点为 /api/cloud/storage/usage(与前端一致)

- 保留 Deep Link 回调 URL secscore://oauth
This commit is contained in:
Yukino_fox
2026-07-05 10:55:50 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -719,7 +719,7 @@ pub async fn oauth_get_storage_usage(
let client = &state_guard.http_client; let client = &state_guard.http_client;
let response = 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)]) .query(&[("client_id", platform_id), ("user_id", user_id)])
.header("Authorization", format!("Bearer {}", access_token)) .header("Authorization", format!("Bearer {}", access_token))
.send() .send()
+1 -1
View File
@@ -8,7 +8,7 @@
export const SECTL_CONFIG = { export const SECTL_CONFIG = {
baseUrl: "https://appwrite.sectl.cn", baseUrl: "https://appwrite.sectl.cn",
authUrl: "https://sectl.cn", authUrl: "https://sectl.cn",
platformId: "", platformId: "", // 需要在设置中配置
callbackUrl: "secscore://oauth", callbackUrl: "secscore://oauth",
callbackPort: 5173, callbackPort: 5173,
} }