mirror of
https://github.com/iLay1678/i-tools.git
synced 2025-07-06 14:32:14 +08:00
禁用get缓存
This commit is contained in:
@ -6,7 +6,7 @@ export const dynamic = "force-dynamic"
|
||||
export async function GET(request, { params }) {
|
||||
try {
|
||||
const { sid } = params;
|
||||
const response = await fetch(`https://openapi.alipan.com/oauth/qrcode/${sid}/status`);
|
||||
const response = await fetch(`https://openapi.alipan.com/oauth/qrcode/${sid}/status`,{next: { revalidate: 0 }});
|
||||
const statusData = await response.json();
|
||||
|
||||
if (statusData.status === 'LoginSuccess') {
|
||||
|
Reference in New Issue
Block a user