mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 05:04:56 +08:00
Update huxiu.ts
updateTime时间格式修正
This commit is contained in:
@@ -29,9 +29,7 @@ const getList = async (noCache: boolean) => {
|
||||
const list: RouterType["huxiu"][] = res.data?.data?.moment_list?.datalist || [];
|
||||
return {
|
||||
fromCache: false,
|
||||
updateTime: res.data?.data?.moment_list?.last_id
|
||||
? getTime(res.data.data.moment_list.last_id)
|
||||
: undefined,
|
||||
updateTime: new Date().toISOString(),
|
||||
data: list.map((v: RouterType["huxiu"]) => {
|
||||
const content = (v.content || "").replace(/<br\s*\/?>/gi, "\n");
|
||||
const [titleLine, ...rest] = content
|
||||
|
||||
Reference in New Issue
Block a user