fix: arxiv from https
This commit is contained in:
parent
dc53e28698
commit
167372d93c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user