From 27b207d0d51f66eb4875bd61f4c4a5186887d40c Mon Sep 17 00:00:00 2001 From: wxy <3050128610@qq.com> Date: Thu, 21 May 2026 22:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BD=E5=86=85=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile.api | 1 + backend/Dockerfile.consumer | 1 + backend/domain/setting.go | 2 +- web/Dockerfile.admin | 2 ++ web/Dockerfile.app | 4 +++- web/admin/src/pages/setting/component/CardQaCopyright.tsx | 2 +- .../pages/setting/component/CardRobot/WebComponent/index.tsx | 2 +- web/app/src/components/QaModal/index.tsx | 2 +- web/app/src/views/widget/index.tsx | 2 +- 9 files changed, 12 insertions(+), 6 deletions(-) diff --git a/backend/Dockerfile.api b/backend/Dockerfile.api index 841eac6..e713307 100644 --- a/backend/Dockerfile.api +++ b/backend/Dockerfile.api @@ -2,6 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.24.3-alpine AS builder WORKDIR /src ENV CGO_ENABLED=0 +ENV GOPROXY=https://goproxy.cn,direct COPY go.mod go.sum ./ RUN --mount=type=cache,target=/go/pkg/mod \ diff --git a/backend/Dockerfile.consumer b/backend/Dockerfile.consumer index 5948bc3..64fdb12 100644 --- a/backend/Dockerfile.consumer +++ b/backend/Dockerfile.consumer @@ -2,6 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.24.3-alpine AS builder WORKDIR /src ENV CGO_ENABLED=0 +ENV GOPROXY=https://goproxy.cn,direct COPY go.mod go.sum ./ RUN --mount=type=cache,target=/go/pkg/mod \ diff --git a/backend/domain/setting.go b/backend/domain/setting.go index a71671f..e310938 100644 --- a/backend/domain/setting.go +++ b/backend/domain/setting.go @@ -8,7 +8,7 @@ import ( const ( SettingKeySystemPrompt = "system_prompt" SettingBlockWords = "block_words" - SettingCopyrightInfo = "本网站由 PandaWiki 提供技术支持" + SettingCopyrightInfo = "本网站由 YouduWiki 提供技术支持" ) // table: settings diff --git a/web/Dockerfile.admin b/web/Dockerfile.admin index 5d3fbe3..c306da6 100644 --- a/web/Dockerfile.admin +++ b/web/Dockerfile.admin @@ -5,6 +5,8 @@ FROM node:22-alpine AS builder +ENV PNPM_REGISTRY=https://registry.npmmirror.com + WORKDIR /build # 安装 pnpm diff --git a/web/Dockerfile.app b/web/Dockerfile.app index 08cb768..881197f 100644 --- a/web/Dockerfile.app +++ b/web/Dockerfile.app @@ -1,10 +1,12 @@ # ============================================ -# PandaWiki Wiki 用户端 - 多阶段构建 +# YouduWiki Wiki 用户端 - 多阶段构建 # 构建上下文: ./web 目录 # ============================================ FROM node:22-alpine AS builder +ENV PNPM_REGISTRY=https://registry.npmmirror.com + WORKDIR /build # 安装 pnpm diff --git a/web/admin/src/pages/setting/component/CardQaCopyright.tsx b/web/admin/src/pages/setting/component/CardQaCopyright.tsx index b019334..a740586 100644 --- a/web/admin/src/pages/setting/component/CardQaCopyright.tsx +++ b/web/admin/src/pages/setting/component/CardQaCopyright.tsx @@ -119,7 +119,7 @@ const CardQaCopyright = ({ { diff --git a/web/admin/src/pages/setting/component/CardRobot/WebComponent/index.tsx b/web/admin/src/pages/setting/component/CardRobot/WebComponent/index.tsx index fe3076f..a21fb5a 100644 --- a/web/admin/src/pages/setting/component/CardRobot/WebComponent/index.tsx +++ b/web/admin/src/pages/setting/component/CardRobot/WebComponent/index.tsx @@ -644,7 +644,7 @@ const CardRobotWebComponent = ({ kb }: CardRobotWebComponentProps) => { { diff --git a/web/app/src/components/QaModal/index.tsx b/web/app/src/components/QaModal/index.tsx index 46dc43a..55ef70f 100644 --- a/web/app/src/components/QaModal/index.tsx +++ b/web/app/src/components/QaModal/index.tsx @@ -270,7 +270,7 @@ const QaModal: React.FC = () => { {!kbDetail?.settings?.conversation_setting ?.copyright_hide_enabled && (kbDetail?.settings?.conversation_setting?.copyright_info || - '本网站由 PandaWiki 提供技术支持')} + '本网站由 YouduWiki 提供技术支持')} diff --git a/web/app/src/views/widget/index.tsx b/web/app/src/views/widget/index.tsx index 9b7e3ec..cd018a0 100644 --- a/web/app/src/views/widget/index.tsx +++ b/web/app/src/views/widget/index.tsx @@ -213,7 +213,7 @@ const Widget = () => { > {widget?.settings?.widget_bot_settings?.copyright_info || - '本网站由 PandaWiki 提供技术支持'} + '本网站由 YouduWiki 提供技术支持'}