From 0c3186ce81725fc3b611ce59632226565e6d5573 Mon Sep 17 00:00:00 2001 From: SunXa <130429781+sooyaa2000@users.noreply.github.com> Date: Fri, 3 May 2024 14:55:10 +0800 Subject: [PATCH] Update index.js --- src/api/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 3d89f1e..5a5a014 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -45,9 +45,8 @@ export const getPlayerList = async (server, type, id) => { // 获取一言数据 export const getHitokoto = async () => { - const res = await fetch("https://v.api.aa1.cn/api/yiyan/index.php"); - const text = await res.text(); // 使用.text()方法而不是.json() - return text; + const res = await fetch("https://v1.hitokoto.cn"); + return await res.json(); }; /**