mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 05:51:55 +08:00
chore: 更新所有链接以指向新的 q58.club 域名
This commit is contained in:
parent
3ba0e3ed6b
commit
bf1797c5d4
@ -74,7 +74,7 @@ pnpm turbo
|
|||||||
|
|
||||||
### 1. 授权请求
|
### 1. 授权请求
|
||||||
|
|
||||||
**端点:** `https://connect.q58.pro/oauth/authorize`
|
**端点:** `https://connect.q58.club/oauth/authorize`
|
||||||
|
|
||||||
**方法:** GET
|
**方法:** GET
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ pnpm turbo
|
|||||||
|
|
||||||
### 2. 获取访问令牌
|
### 2. 获取访问令牌
|
||||||
|
|
||||||
**端点:** `https://connect.q58.pro/api/oauth/access_token`
|
**端点:** `https://connect.q58.club/api/oauth/access_token`
|
||||||
|
|
||||||
**方法:** POST
|
**方法:** POST
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ pnpm turbo
|
|||||||
|
|
||||||
### 3. 获取用户信息
|
### 3. 获取用户信息
|
||||||
|
|
||||||
**端点:** `https://connect.q58.pro/api/oauth/user`
|
**端点:** `https://connect.q58.club/api/oauth/user`
|
||||||
|
|
||||||
**方法:** GET
|
**方法:** GET
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ const nextConfig = {
|
|||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: "https",
|
protocol: "https",
|
||||||
hostname: "q58.pro",
|
hostname: "q58.club",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
protocol: "https",
|
protocol: "https",
|
||||||
|
@ -105,14 +105,14 @@ export default function IndexPage() {
|
|||||||
</div>
|
</div>
|
||||||
<pre className="overflow-x-auto text-sm text-gray-300">
|
<pre className="overflow-x-auto text-sm text-gray-300">
|
||||||
<code>{`// 1. 重定向到授权页面(必须通过浏览器重定向,不能使用 AJAX/Fetch)
|
<code>{`// 1. 重定向到授权页面(必须通过浏览器重定向,不能使用 AJAX/Fetch)
|
||||||
window.location.href = 'https://connect.q58.pro/oauth/authorize?' + new URLSearchParams({
|
window.location.href = 'https://connect.q58.club/oauth/authorize?' + new URLSearchParams({
|
||||||
response_type: 'code',
|
response_type: 'code',
|
||||||
client_id: 'your_client_id',
|
client_id: 'your_client_id',
|
||||||
redirect_uri: 'https://your-app.com/callback'
|
redirect_uri: 'https://your-app.com/callback'
|
||||||
});
|
});
|
||||||
|
|
||||||
// 2. 在回调页面获取访问令牌
|
// 2. 在回调页面获取访问令牌
|
||||||
const response = await fetch('https://connect.q58.pro/api/oauth/access_token', {
|
const response = await fetch('https://connect.q58.club/api/oauth/access_token', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: new URLSearchParams({
|
body: new URLSearchParams({
|
||||||
code: '授权码',
|
code: '授权码',
|
||||||
@ -122,7 +122,7 @@ const response = await fetch('https://connect.q58.pro/api/oauth/access_token', {
|
|||||||
const { access_token } = await response.json();
|
const { access_token } = await response.json();
|
||||||
|
|
||||||
// 3. 获取用户信息
|
// 3. 获取用户信息
|
||||||
const userInfo = await fetch('https://connect.q58.pro/api/oauth/user', {
|
const userInfo = await fetch('https://connect.q58.club/api/oauth/user', {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': \`Bearer \${access_token}\`
|
'Authorization': \`Bearer \${access_token}\`
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ const userInfo = await fetch('https://connect.q58.pro/api/oauth/user', {
|
|||||||
<div className="mx-auto max-w-7xl px-4 text-center text-gray-600 dark:text-gray-400 sm:px-6 lg:px-8">
|
<div className="mx-auto max-w-7xl px-4 text-center text-gray-600 dark:text-gray-400 sm:px-6 lg:px-8">
|
||||||
© 2024{" "}
|
© 2024{" "}
|
||||||
<a
|
<a
|
||||||
href="https://q58.pro"
|
href="https://q58.club"
|
||||||
className="text-[#25263A] hover:underline dark:text-[#A0A1B2]"
|
className="text-[#25263A] hover:underline dark:text-[#A0A1B2]"
|
||||||
>
|
>
|
||||||
Q58论坛
|
Q58论坛
|
||||||
|
@ -32,14 +32,14 @@ export default function AuthPage({ searchParams }: Props) {
|
|||||||
<p className="px-8 text-center text-sm text-muted-foreground">
|
<p className="px-8 text-center text-sm text-muted-foreground">
|
||||||
By clicking continue, you agree to our{" "}
|
By clicking continue, you agree to our{" "}
|
||||||
<Link
|
<Link
|
||||||
href="https://q58.pro/tos"
|
href="https://q58.club/tos"
|
||||||
className="hover:text-brand underline underline-offset-4"
|
className="hover:text-brand underline underline-offset-4"
|
||||||
>
|
>
|
||||||
Terms of Service
|
Terms of Service
|
||||||
</Link>{" "}
|
</Link>{" "}
|
||||||
and{" "}
|
and{" "}
|
||||||
<Link
|
<Link
|
||||||
href="https://q58.pro/privacy"
|
href="https://q58.club/privacy"
|
||||||
className="hover:text-brand underline underline-offset-4"
|
className="hover:text-brand underline underline-offset-4"
|
||||||
>
|
>
|
||||||
Privacy Policy
|
Privacy Policy
|
||||||
|
@ -41,14 +41,14 @@ export default function LoginPage() {
|
|||||||
<p className="px-8 text-center text-sm text-muted-foreground">
|
<p className="px-8 text-center text-sm text-muted-foreground">
|
||||||
By clicking continue, you agree to our{" "}
|
By clicking continue, you agree to our{" "}
|
||||||
<Link
|
<Link
|
||||||
href="https://q58.pro/tos"
|
href="https://q58.club/tos"
|
||||||
className="hover:text-brand underline underline-offset-4"
|
className="hover:text-brand underline underline-offset-4"
|
||||||
>
|
>
|
||||||
Terms of Service
|
Terms of Service
|
||||||
</Link>{" "}
|
</Link>{" "}
|
||||||
and{" "}
|
and{" "}
|
||||||
<Link
|
<Link
|
||||||
href="https://q58.pro/privacy"
|
href="https://q58.club/privacy"
|
||||||
className="hover:text-brand underline underline-offset-4"
|
className="hover:text-brand underline underline-offset-4"
|
||||||
>
|
>
|
||||||
Privacy Policy
|
Privacy Policy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user