From 167372d93cfe1408254261087acb4e739a53480c Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Sun, 28 Jan 2024 09:12:13 +0800 Subject: [PATCH] fix: arxiv from https --- components/GetArxiv.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/GetArxiv.tsx b/components/GetArxiv.tsx index 2c4120b..075379c 100644 --- a/components/GetArxiv.tsx +++ b/components/GetArxiv.tsx @@ -43,7 +43,7 @@ async function getArxivPapers( ) { const maxOffset = 30 - maxResults; // 假设总记录数为 100 const start = getRandomOffset(maxOffset); - const url = `http://export.arxiv.org/api/query?search_query=${query}&start=${start}&max_results=${maxResults}&sortBy=${sortBy}&sortOrder=${sortOrder}`; + const url = `https://export.arxiv.org/api/query?search_query=${query}&start=${start}&max_results=${maxResults}&sortBy=${sortBy}&sortOrder=${sortOrder}`; try { const response = await axios.get(url);