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. 授权请求
|
||||
|
||||
**端点:** `https://connect.q58.pro/oauth/authorize`
|
||||
**端点:** `https://connect.q58.club/oauth/authorize`
|
||||
|
||||
**方法:** GET
|
||||
|
||||
@ -93,7 +93,7 @@ pnpm turbo
|
||||
|
||||
### 2. 获取访问令牌
|
||||
|
||||
**端点:** `https://connect.q58.pro/api/oauth/access_token`
|
||||
**端点:** `https://connect.q58.club/api/oauth/access_token`
|
||||
|
||||
**方法:** POST
|
||||
|
||||
@ -114,7 +114,7 @@ pnpm turbo
|
||||
|
||||
### 3. 获取用户信息
|
||||
|
||||
**端点:** `https://connect.q58.pro/api/oauth/user`
|
||||
**端点:** `https://connect.q58.club/api/oauth/user`
|
||||
|
||||
**方法:** GET
|
||||
|
||||
|
@ -6,7 +6,7 @@ const nextConfig = {
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "q58.pro",
|
||||
hostname: "q58.club",
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
|
@ -105,14 +105,14 @@ export default function IndexPage() {
|
||||
</div>
|
||||
<pre className="overflow-x-auto text-sm text-gray-300">
|
||||
<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',
|
||||
client_id: 'your_client_id',
|
||||
redirect_uri: 'https://your-app.com/callback'
|
||||
});
|
||||
|
||||
// 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',
|
||||
body: new URLSearchParams({
|
||||
code: '授权码',
|
||||
@ -122,7 +122,7 @@ const response = await fetch('https://connect.q58.pro/api/oauth/access_token', {
|
||||
const { access_token } = await response.json();
|
||||
|
||||
// 3. 获取用户信息
|
||||
const userInfo = await fetch('https://connect.q58.pro/api/oauth/user', {
|
||||
const userInfo = await fetch('https://connect.q58.club/api/oauth/user', {
|
||||
headers: {
|
||||
'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">
|
||||
© 2024{" "}
|
||||
<a
|
||||
href="https://q58.pro"
|
||||
href="https://q58.club"
|
||||
className="text-[#25263A] hover:underline dark:text-[#A0A1B2]"
|
||||
>
|
||||
Q58论坛
|
||||
|
@ -32,14 +32,14 @@ export default function AuthPage({ searchParams }: Props) {
|
||||
<p className="px-8 text-center text-sm text-muted-foreground">
|
||||
By clicking continue, you agree to our{" "}
|
||||
<Link
|
||||
href="https://q58.pro/tos"
|
||||
href="https://q58.club/tos"
|
||||
className="hover:text-brand underline underline-offset-4"
|
||||
>
|
||||
Terms of Service
|
||||
</Link>{" "}
|
||||
and{" "}
|
||||
<Link
|
||||
href="https://q58.pro/privacy"
|
||||
href="https://q58.club/privacy"
|
||||
className="hover:text-brand underline underline-offset-4"
|
||||
>
|
||||
Privacy Policy
|
||||
|
@ -41,14 +41,14 @@ export default function LoginPage() {
|
||||
<p className="px-8 text-center text-sm text-muted-foreground">
|
||||
By clicking continue, you agree to our{" "}
|
||||
<Link
|
||||
href="https://q58.pro/tos"
|
||||
href="https://q58.club/tos"
|
||||
className="hover:text-brand underline underline-offset-4"
|
||||
>
|
||||
Terms of Service
|
||||
</Link>{" "}
|
||||
and{" "}
|
||||
<Link
|
||||
href="https://q58.pro/privacy"
|
||||
href="https://q58.club/privacy"
|
||||
className="hover:text-brand underline underline-offset-4"
|
||||
>
|
||||
Privacy Policy
|
||||
|
Loading…
x
Reference in New Issue
Block a user