🐞 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

@@ -27,7 +27,7 @@ export const handleRoute = async (c: ListContext, noCache: boolean) => {
const getList = async (options: Options, noCache: boolean) => {
const { province } = options;
const url = `http://www.nmc.cn/rest/findAlarm?pageNo=1&pageSize=20&signaltype=&signallevel=&province=${encodeURIComponent(province)}`;
const url = `http://www.nmc.cn/rest/findAlarm?pageNo=1&pageSize=20&signaltype=&signallevel=&province=${encodeURIComponent(province || "")}`;
const result = await get({ url, noCache });
const list = result.data.data.page.list;
return {