From fc260772836755f9fc84464aabd4726641059aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 26 Apr 2026 17:26:53 +0800 Subject: [PATCH] fix: #1793 --- .../src/components/hitokoto.tsx | 2 +- .../src/types/hitokoto.d.ts | 20 ++++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/packages/napcat-webui-frontend/src/components/hitokoto.tsx b/packages/napcat-webui-frontend/src/components/hitokoto.tsx index 74b13a826..60898f141 100644 --- a/packages/napcat-webui-frontend/src/components/hitokoto.tsx +++ b/packages/napcat-webui-frontend/src/components/hitokoto.tsx @@ -20,7 +20,7 @@ export default function Hitokoto () { error, loading, run, - } = useRequest(() => request.get('https://hitokoto.152710.xyz/'), { + } = useRequest(() => request.get('https://hi.logacg.com/'), { throttleWait: 1000, }); const backupData = { diff --git a/packages/napcat-webui-frontend/src/types/hitokoto.d.ts b/packages/napcat-webui-frontend/src/types/hitokoto.d.ts index 39af6110f..1dcde8806 100644 --- a/packages/napcat-webui-frontend/src/types/hitokoto.d.ts +++ b/packages/napcat-webui-frontend/src/types/hitokoto.d.ts @@ -13,16 +13,12 @@ type HitokitoType = | 'l'; /** 抖机灵 */ interface IHitokoto { - id: number - uuid: string - hitokoto: string - type: HitokitoType - from: string - from_who: string - creator: string - creator_uid: number - reviewer: number - commit_from: string - created_at: string - length: number + id: number; + uuid: string; + hitokoto: string; + type: HitokitoType; + from: string; + from_who: string; + created_at: string; + length: number; }