🐞 fix: 部分类型错误

- 新增 米游社 综合接口
This commit is contained in:
imsyy
2024-12-03 18:09:32 +08:00
parent afb7c7d515
commit 098b80865b
37 changed files with 1656 additions and 748 deletions

View File

@@ -44,10 +44,10 @@ const getList = async (noCache: boolean) => {
title: dom.find(".newsbody h2").text().trim(),
desc: dom.find(".newsbody p").text().trim(),
cover: dom.find("img").attr("data-original"),
timestamp: getTime(dateTime),
timestamp: getTime(dateTime || 0),
hot: Number(dom.find(".comment").text().replace(/\D/g, "")),
url: href || undefined,
mobileUrl: href ? replaceLink(href) : undefined,
url: href || "",
mobileUrl: href ? replaceLink(href) : "",
};
});
return {