From 82b283b94d4af9cf03dcfaf0271753f5c949a612 Mon Sep 17 00:00:00 2001 From: "weicw1996@qq.com" Date: Wed, 30 Sep 2026 17:43:00 +0800 Subject: [PATCH] =?UTF-8?q?chore(domain):=20=E5=AE=98=E7=BD=91=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9F=BA=E5=9D=80=E8=BF=81=20api.gxhuijicai.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端对外域名由 hjc-api.websoft.top 迁到 api.gxhuijicai.com: - nuxt.config.ts 的 modulesApiBase / appApiBase / fileServerBase 默认值, 以及 preconnect / dns-prefetch 提示 - .env.production、.env.example、README 的环境变量说明 - scripts/cms_fill_image.py、scripts/publish-cms-content.mjs 的默认 CMS 地址 - database/template-switch-verification.md、outputs/ 两份快照里的地址表述 注意 appApiBase 同时是 fileServerBase 的来源(nuxt.config.ts 取其 origin, server/api/file/[...path].ts 用它代理文件下载)。已实测新域名与旧域名在 /api/file/** 上行为一致,本次迁移不改变该路径的结果。 已实测新域名对官网用到的接口可达(/api/hjc/** 正常),CORS 预检放行。 --- .env.example | 4 ++-- .env.production | 8 ++++---- README.md | 8 ++++---- database/template-switch-verification.md | 2 +- nuxt.config.ts | 10 +++++----- outputs/template-07-home-with-news.html | 2 +- outputs/汇吉采-标书购买-前端清单与后端接口清单.md | 2 +- scripts/cms_fill_image.py | 2 +- scripts/publish-cms-content.mjs | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.env.example b/.env.example index 53d5c97..1f97c59 100644 --- a/.env.example +++ b/.env.example @@ -26,9 +26,9 @@ NUXT_PUBLIC_TEMPLATE_ID= NUXT_PUBLIC_FORCE_TEMPLATE_ID= # ---------- 后端接口地址 ---------- -# 内容/CMS 接口。生产为 https://hjc-api.websoft.top/api +# 内容/CMS 接口。生产为 https://api.gxhuijicai.com/api NUXT_PUBLIC_MODULES_API_BASE= -# 租户/模板解析接口。生产为 https://hjc-api.websoft.top(无 /api 后缀) +# 租户/模板解析接口。生产为 https://api.gxhuijicai.com(无 /api 后缀) NUXT_PUBLIC_APP_API_BASE= # 图片/文件服务器。留空则从 APP_API_BASE 自动推导 NUXT_PUBLIC_FILE_SERVER_BASE= diff --git a/.env.production b/.env.production index 3efcee6..822b6a4 100644 --- a/.env.production +++ b/.env.production @@ -6,11 +6,11 @@ # ============================================================ # ---------- 接口(生产必须指向线上) ---------- -# 单一后端(已迁移):内容/CMS、租户解析、模板解析全部走 hjc-api.websoft.top -NUXT_PUBLIC_MODULES_API_BASE=https://hjc-api.websoft.top/api -NUXT_PUBLIC_APP_API_BASE=https://hjc-api.websoft.top +# 单一后端(已迁移):内容/CMS、租户解析、模板解析全部走 api.gxhuijicai.com +NUXT_PUBLIC_MODULES_API_BASE=https://api.gxhuijicai.com/api +NUXT_PUBLIC_APP_API_BASE=https://api.gxhuijicai.com # 图片/文件服务器。留空则由 nuxt.config.ts 从 APP_API_BASE 推导出 -# https://hjc-api.websoft.top,无需手写 +# https://api.gxhuijicai.com,无需手写 NUXT_PUBLIC_FILE_SERVER_BASE= # ---------- 站点 / 多租户域名 ---------- diff --git a/README.md b/README.md index a45d613..51258dd 100644 --- a/README.md +++ b/README.md @@ -104,15 +104,15 @@ NUXT_PUBLIC_TENANT_ID= NUXT_PUBLIC_APP_ID=42 NUXT_PUBLIC_TEMPLATE_ID= -# 接口地址(单一后端:内容/CMS、租户解析、模板解析全部走 hjc-api.websoft.top) -NUXT_PUBLIC_MODULES_API_BASE=https://hjc-api.websoft.top/api -NUXT_PUBLIC_APP_API_BASE=https://hjc-api.websoft.top +# 接口地址(单一后端:内容/CMS、租户解析、模板解析全部走 api.gxhuijicai.com) +NUXT_PUBLIC_MODULES_API_BASE=https://api.gxhuijicai.com/api +NUXT_PUBLIC_APP_API_BASE=https://api.gxhuijicai.com # 多租户域名(官网主域 gxhuijicai.com 居首;其余为平台遗留主域,共存保留) NUXT_PUBLIC_BASE_DOMAINS=gxhuijicai.com,shoplnk.cn,sitelink.cn,wsdns.cn ``` -> ℹ️ `nuxt.config.ts` 内置的接口默认值已统一为 `https://hjc-api.websoft.top`(单后端)。 +> ℹ️ `nuxt.config.ts` 内置的接口默认值已统一为 `https://api.gxhuijicai.com`(单后端)。 > `.env.production` 中也显式指定同一地址。 > 若将来再次更换域名,请同步修改 `nuxt.config.ts`、`.env.production` 与 `.env.example`。 diff --git a/database/template-switch-verification.md b/database/template-switch-verification.md index 7005d67..a6b7941 100644 --- a/database/template-switch-verification.md +++ b/database/template-switch-verification.md @@ -8,7 +8,7 @@ 后台 website-admin `_websopy` 代理 → `websopy-api.websoft.top` = **websopy-java**。 `CmsTemplateController.use()` 按 `loginUser.getTenantId()` 写 `cms_website.template_id`。 - **读路径** `GET /cms/cms-website/getSiteInfo`: - 公开站 `modulesApiBase` 与 后台 `_cms` 代理 → `hjc-api.sitelnk.cn` = **mp-java**。 + 公开站 `modulesApiBase` 与 后台 `_cms` 代理 → `api.gxhuijicai.com` = **mp-java**。 返回 `ShopVo`(站点信息),被 Redis 缓存 1 天(key `SiteInfo:{tenantId}`)。 - 两后端**共享同一 Redis**(prod `1Panel-redis-Q1LE`;dev `47.119.165.234`,同密码), 故 websopy-java 的 `use()` 清缓存能清掉 mp-java 读的 `SiteInfo:{tenantId}`。 diff --git a/nuxt.config.ts b/nuxt.config.ts index 01b96c1..8124b0d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -28,14 +28,14 @@ const siteName = process.env.NUXT_PUBLIC_SITE_NAME || '' const modulesApiBase = process.env.NUXT_PUBLIC_MODULES_API_BASE || - 'https://hjc-api.websoft.top/api' + 'https://api.gxhuijicai.com/api' const appApiBase = process.env.NUXT_PUBLIC_APP_API_BASE || - 'https://hjc-api.websoft.top' + 'https://api.gxhuijicai.com' const fileServerBase = process.env.NUXT_PUBLIC_FILE_SERVER_BASE || getOrigin(appApiBase) || - 'https://hjc-api.websoft.top' + 'https://api.gxhuijicai.com' const baseDomain = process.env.NUXT_PUBLIC_BASE_DOMAIN || 'gxhuijicai.com' // 多主域清单:子域名租户解析支持的主域(逗号分隔)。 @@ -81,8 +81,8 @@ export default defineNuxtConfig({ link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, // 提前与接口/图片源站建立连接,降低首字节与图片加载延迟 - { rel: 'preconnect', href: 'https://hjc-api.websoft.top', crossorigin: '' }, - { rel: 'dns-prefetch', href: 'https://hjc-api.websoft.top' }, + { rel: 'preconnect', href: 'https://api.gxhuijicai.com', crossorigin: '' }, + { rel: 'dns-prefetch', href: 'https://api.gxhuijicai.com' }, { rel: 'preconnect', href: 'https://file.wsdns.cn', crossorigin: '' }, { rel: 'dns-prefetch', href: 'https://file.wsdns.cn' }, // 思源黑体(Noto Sans SC,SIL 开源许可,版权无忧)网页字体,全站统一字体 diff --git a/outputs/template-07-home-with-news.html b/outputs/template-07-home-with-news.html index 5d2d1ac..08d0553 100644 --- a/outputs/template-07-home-with-news.html +++ b/outputs/template-07-home-with-news.html @@ -7,4 +7,4 @@ if (!window.__NUXT_DEVTOOLS_TIME_METRIC__) { }) } window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now() -
首页幻灯片

四大核心业务

覆盖政府采购、工程咨询、投融资服务及 AI 数智化全链条

政府采购代理

提供招标投标、政府采购全流程代理服务,专业合规、高效透明。

工程咨询服务

工程造价、工程监理、项目管理等一站式工程咨询服务,助力项目顺利落地。

投融资服务

项目投融资策划与对接,为政府及企业提供资金解决方案与财务顾问支持。

AI 数智化

运用人工智能与大数据技术,推动政务与企业数字化转型,提升管理效能。

关于我们

广西汇吉采咨询有限公司成立于2017年,是一家专业化的全过程工程咨询服务商,业务涵盖招投标代理、政府采购代理、工程造价咨询、工程管理服务及建设工程监理等领域。目前已在柳州、崇左、北海、梧州、百色、贺州等地设立分支机构,服务网络覆盖全广西。我们始终以诚信为本,以专业立身,致力于为各级政企客户提供高效、可信赖的工程咨询解决方案。

汇吉采官网

准备好开始了吗?

立即联系我们,获取专属企业官网解决方案

\ No newline at end of file +
首页幻灯片

四大核心业务

覆盖政府采购、工程咨询、投融资服务及 AI 数智化全链条

政府采购代理

提供招标投标、政府采购全流程代理服务,专业合规、高效透明。

工程咨询服务

工程造价、工程监理、项目管理等一站式工程咨询服务,助力项目顺利落地。

投融资服务

项目投融资策划与对接,为政府及企业提供资金解决方案与财务顾问支持。

AI 数智化

运用人工智能与大数据技术,推动政务与企业数字化转型,提升管理效能。

关于我们

广西汇吉采咨询有限公司成立于2017年,是一家专业化的全过程工程咨询服务商,业务涵盖招投标代理、政府采购代理、工程造价咨询、工程管理服务及建设工程监理等领域。目前已在柳州、崇左、北海、梧州、百色、贺州等地设立分支机构,服务网络覆盖全广西。我们始终以诚信为本,以专业立身,致力于为各级政企客户提供高效、可信赖的工程咨询解决方案。

汇吉采官网

准备好开始了吗?

立即联系我们,获取专属企业官网解决方案

\ No newline at end of file diff --git a/outputs/汇吉采-标书购买-前端清单与后端接口清单.md b/outputs/汇吉采-标书购买-前端清单与后端接口清单.md index 5fdabe4..01c8b5c 100644 --- a/outputs/汇吉采-标书购买-前端清单与后端接口清单.md +++ b/outputs/汇吉采-标书购买-前端清单与后端接口清单.md @@ -43,7 +43,7 @@ | `server/api/payment/query.get.ts` | `tenderApiBase/payment/query` | 支付状态查询(复用现有支付查询) | | `server/api/supplier/login.post.ts` 等 | `tenderApiBase/...` | 仅当采用账号密码注册登录时新增 | -> **双后端兼容**:所有 `tenderApiBase` 走统一 runtimeConfig(`NUXT_TENDER_API_BASE`),默认 `https://hjc-api.sitelnk.cn/api`;若确认交易走 guilixu-java,改 env 即可,前端代码不变。租户头 `TenantId`、JWT 透传沿用现有中间件。 +> **双后端兼容**:所有 `tenderApiBase` 走统一 runtimeConfig(`NUXT_TENDER_API_BASE`),默认 `https://api.gxhuijicai.com/api`;若确认交易走 guilixu-java,改 env 即可,前端代码不变。租户头 `TenantId`、JWT 透传沿用现有中间件。 --- diff --git a/scripts/cms_fill_image.py b/scripts/cms_fill_image.py index 7f6b76f..d61bb8c 100644 --- a/scripts/cms_fill_image.py +++ b/scripts/cms_fill_image.py @@ -7,7 +7,7 @@ import os, json, sys, subprocess, time, urllib.request, urllib.error TOKEN = os.environ.get("TOKEN", "") UPLOAD = "https://server.websoft.top/api/file/upload" -CMS = "https://hjc-api.websoft.top/api" +CMS = "https://api.gxhuijicai.com/api" FILE_BASE = "https://file.websoft.top/api/file/" HDR = {"TenantId": "10626", "Authorization": "Bearer " + TOKEN} diff --git a/scripts/publish-cms-content.mjs b/scripts/publish-cms-content.mjs index f4db164..9950886 100644 --- a/scripts/publish-cms-content.mjs +++ b/scripts/publish-cms-content.mjs @@ -25,7 +25,7 @@ * ============================================================================ */ -const API_BASE = process.env.CMS_API_BASE || 'https://hjc-api.websoft.top/api' +const API_BASE = process.env.CMS_API_BASE || 'https://api.gxhuijicai.com/api' const TOKEN_RAW = process.env.ADMIN_TOKEN || '' const TENANT_ID = process.env.TENANT_ID || '10546' const APPLY = process.env.APPLY === '1'