新增错误标题

This commit is contained in:
imsyy
2023-03-23 18:00:48 +08:00
parent 1a0384e820
commit 7a3c0375fa
12 changed files with 50 additions and 1 deletions

View File

@@ -60,6 +60,8 @@ newsqqRouter.get("/newsqq", async (ctx) => {
console.error(error);
ctx.body = {
code: 500,
title: "腾讯新闻",
subtitle: "热点榜",
message: "获取失败",
};
}
@@ -108,6 +110,8 @@ newsqqRouter.get("/newsqq/new", async (ctx) => {
// 如果缓存中也没有数据,则返回错误信息
ctx.body = {
code: 500,
title: "腾讯新闻",
subtitle: "热点榜",
message: "获取失败",
};
}