From 2bc1d4748acbe044f8c83734b12578d26e5df887 Mon Sep 17 00:00:00 2001 From: kang Date: Fri, 29 May 2026 14:52:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20.gitignore=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BB=A5=E6=8E=92=E9=99=A4=20pm2=20=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 .gitignore,新增对 pm2 日志目录的忽略规则,以优化项目文件管理。 --- .gitignore | 3 +++ src/i18n/locales/zh/entry.json | 4 ++-- src/lib/lottery-api-base.ts | 4 +--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 7b8da95..fc6edee 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,9 @@ .DS_Store *.pem +# pm2 +/logs + # debug npm-debug.log* yarn-debug.log* diff --git a/src/i18n/locales/zh/entry.json b/src/i18n/locales/zh/entry.json index 05ca2d1..5785000 100644 --- a/src/i18n/locales/zh/entry.json +++ b/src/i18n/locales/zh/entry.json @@ -3,7 +3,7 @@ "backgroundAlt": "页头背景" }, "loading": { - "title": "正在进入彩票大厅", + "title": "正在进入彩票大厅(前端测试标记)", "progress": "进度" }, "steps": { @@ -29,7 +29,7 @@ "retryProgress": "正在重试({{current}}/{{total}})…" }, "failure": { - "title": "授权失败", + "title": "授权失败111", "subtitle": "无法完成授权,请重试。", "detailsTitle": "失败详情", "table": { diff --git a/src/lib/lottery-api-base.ts b/src/lib/lottery-api-base.ts index f49c745..951a83e 100644 --- a/src/lib/lottery-api-base.ts +++ b/src/lib/lottery-api-base.ts @@ -2,9 +2,7 @@ const DEFAULT_LOTTERY_API_ORIGIN = "http://127.0.0.1:8000"; /** Laravel 根地址(无尾部 `/`),仅供 Next 本地开发代理与 middleware 服务端请求。 */ export function lotteryApiOrigin(): string { - const configured = - process.env.LOTTERY_API_UPSTREAM?.trim() || - process.env.NEXT_PUBLIC_LOTTERY_API_BASE_URL?.trim(); + const configured = process.env.LOTTERY_API_UPSTREAM?.trim(); return (configured || DEFAULT_LOTTERY_API_ORIGIN).replace(/\/$/, ""); }