feat: 新增 虎扑 & 新浪网 & 新浪新闻

- 修复历史上的今天 #63
This commit is contained in:
imsyy
2024-06-25 13:47:40 +08:00
parent 6988df58f1
commit bf80a2e22c
25 changed files with 348 additions and 36 deletions

View File

@@ -6,14 +6,14 @@ import { getCurrentDateTime } from "../utils/getTime.js";
export const handleRoute = async (c: ListContext, noCache: boolean) => {
// 获取日期
const day = c.req.query("day") || getCurrentDateTime().day;
const month = c.req.query("month") || getCurrentDateTime().month;
const day = c.req.query("day") || getCurrentDateTime(true).day;
const month = c.req.query("month") || getCurrentDateTime(true).month;
const { fromCache, data, updateTime } = await getList({ month, day }, noCache);
const routeData: RouterData = {
name: "history",
title: "历史上的今天",
type: `${month}-${day}`,
parame: {
params: {
month: "月份",
day: "日期",
},