更新脚本修改,福利应用删除

This commit is contained in:
谢宇宁
2026-10-26 21:14:28 +07:00
parent d2c8c63a36
commit ff95c1bdbd
11 changed files with 247 additions and 69 deletions
@@ -1,17 +0,0 @@
import { connection } from "next/server";
import { getHomeBaseCached } from "@/lib/api/home";
import { HomeBaseDebug } from "./home-base-debug";
/** 调试插槽:拉取 home/base 并在浏览器控制台打印 */
export async function HomeBaseDebugSlot() {
await connection();
let data: Awaited<ReturnType<typeof getHomeBaseCached>> = {};
try {
data = await getHomeBaseCached();
} catch {
data = {};
}
return <HomeBaseDebug data={data} />;
}
-14
View File
@@ -1,14 +0,0 @@
"use client";
import { useEffect } from "react";
import type { HomeBaseResp } from "@/lib/api/types";
/** 浏览器控制台打印 /api/app/home/base 返回数据(调试用) */
export function HomeBaseDebug({ data }: { data: HomeBaseResp }) {
useEffect(() => {
console.info("[home/base]", data);
}, [data]);
return null;
}
-21
View File
@@ -1,21 +0,0 @@
"use client";
import { useEffect } from "react";
import type { AdvitiseData, ConfigInfo, HomePlayletResponse } from "@/lib/api/types";
/** 调试:把首页接口数据打到浏览器控制台 */
export function HomeDataDebug({
home,
base,
}: {
home?: HomePlayletResponse | null;
base?: { advitise?: AdvitiseData; config?: ConfigInfo };
}) {
useEffect(() => {
console.log("[home] playlet/home", home);
console.log("[home] home/base", base);
}, [home, base]);
return null;
}