fix: arxiv from https

This commit is contained in:
liuweiqing 2024-01-28 09:12:13 +08:00
parent dc53e28698
commit 167372d93c

View File

@ -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);