feat: 新增豆瓣新片榜 & add ESLint

This commit is contained in:
imsyy
2023-09-06 14:48:27 +08:00
parent 813e88c993
commit 6330914d09
21 changed files with 1788 additions and 343 deletions

View File

@@ -129,7 +129,7 @@ itHomeRouter.get("/ithome/new", async (ctx) => {
...routerInfo,
updateTime,
total: newData.length,
data: newData
data: newData,
};
// 删除旧数据
@@ -147,7 +147,7 @@ itHomeRouter.get("/ithome/new", async (ctx) => {
...routerInfo,
total: cachedData.length,
updateTime,
data: cachedData
data: cachedData,
};
} else {
// 如果缓存中也没有数据,则返回错误信息