From 5fdda6efc7c82bd778596ee9b2a8fbab5625dd17 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 1 Dec 2026 18:26:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9F=9F=E5=90=8D=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E8=87=B3yzrcloud.cn=E2=80=94=E2=80=94=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8FAPI=E5=88=87wdkjwx=E3=80=81H5/SEO=E5=88=87wdkj(?= =?UTF-8?q?=E8=A7=84=E9=81=BFyuzhiran.com.cn=E4=B8=BB=E5=9F=9F=E5=A4=87?= =?UTF-8?q?=E6=A1=88=E9=A3=8E=E9=99=A9)=EF=BC=9B=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E4=B8=8Esitemap=E5=90=8C=E6=AD=A5=EF=BC=9B?= =?UTF-8?q?=E7=89=88=E6=9C=ACv1.4.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ README.md | 2 +- client/src/manifest.json | 4 ++-- client/src/pages/login/login.vue | 2 +- client/src/pages/news/news.vue | 2 +- client/src/utils/api.js | 4 ++-- client/src/utils/error-handler.js | 2 +- docker-compose.prod.yml | 2 +- server/src/index.js | 2 +- 9 files changed, 16 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abe6b84..c43559f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v1.4.10(2026-12-01)域名迁移 + +- **API 域名迁移**:小程序/H5 后端 API 切换至 `wdkjwx.yzrcloud.cn`(原 `wdkj.yuzhiran.com.cn` 因主域备案接入异常存在封禁风险,新域名已在小程序平台配置) +- **H5 站点域名**:H5 及 SEO 内容页迁移至 `wdkj.yzrcloud.cn`,分享链接同步更新 +- **服务端**:访问来源识别纳入新域名;SEO sitemap 站点地址切换至新域 + ## v1.2.0(2026-09-13)星图点亮体系重构 - **登录修复**:微信一键登录恢复(Docker 迁移环境变量补齐 + 容器网络修复);趋势页筛选按钮单行紧凑化、产品图标修复 diff --git a/README.md b/README.md index 8d49a01..ac42370 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ pnpm build:h5 # 构建 H5 ## 部署 -线上服务:`yzr-wdkj.service`(systemd),端口 3001,反向代理至 `wdkj.yuzhiran.com.cn`。 +线上服务:Docker 编排(`docker-compose.prod.yml`),server 端口 3001;域名 `wdkj.yzrcloud.cn`(H5)与 `wdkjwx.yzrcloud.cn`(小程序 API),旧域 `wdkj.yuzhiran.com.cn` 保留兼容已发版本。 趋势数据由 Hermes cron 每日 8:00 自动更新。 diff --git a/client/src/manifest.json b/client/src/manifest.json index a4226cf..b48d3e6 100644 --- a/client/src/manifest.json +++ b/client/src/manifest.json @@ -1,8 +1,8 @@ { "name": "宇之然AI维度", "appid": "wxdad62baf4ccd09e3", - "versionName": "1.4.9", - "versionCode": "100", + "versionName": "1.4.10", + "versionCode": "101", "description": "AI 知识探索社区 — 从5个维度系统理解人工智能", "uni-app": { "compilerVersion": "3.0.0" diff --git a/client/src/pages/login/login.vue b/client/src/pages/login/login.vue index 362ae36..2d89d6e 100644 --- a/client/src/pages/login/login.vue +++ b/client/src/pages/login/login.vue @@ -148,7 +148,7 @@ const userStore = useUserStore() const loginForm = ref({ email: '', password: '' }) const registerForm = ref({ email: '', username: '', password: '', nickName: '', verifyCode: '' }) -const BASE_URL = 'https://wdkj.yuzhiran.com.cn' +const BASE_URL = 'https://wdkjwx.yzrcloud.cn' /** 发送邮箱验证码 */ async function handleSendCode() { diff --git a/client/src/pages/news/news.vue b/client/src/pages/news/news.vue index ac914c4..baf837d 100644 --- a/client/src/pages/news/news.vue +++ b/client/src/pages/news/news.vue @@ -202,7 +202,7 @@ function onShare() { // #endif // #ifdef H5 uni.setClipboardData({ - data: news.value.sourceUrl || `https://wdkj.yuzhiran.com.cn/trends/${news.value._id || ''}`, + data: news.value.sourceUrl || `https://wdkj.yzrcloud.cn/trends/${news.value._id || ''}`, success: () => uni.showToast({ title: '链接已复制', icon: 'none' }) }) // #endif diff --git a/client/src/utils/api.js b/client/src/utils/api.js index 21ec5f9..5ca16ce 100644 --- a/client/src/utils/api.js +++ b/client/src/utils/api.js @@ -1,9 +1,9 @@ /** * 宇之然AI维度 — API 工具 - * 后端地址:wdkj.yuzhiran.com.cn (生产) / 127.0.0.1:3001 (开发) + * 后端地址:wdkjwx.yzrcloud.cn (生产) / 127.0.0.1:3001 (开发) */ -const BASE_URL = 'https://wdkj.yuzhiran.com.cn' +const BASE_URL = 'https://wdkjwx.yzrcloud.cn' const DEV_URL = 'http://127.0.0.1:3001' // 构建时可用 VITE_API_BASE 覆盖(本地 docker 验证等场景) diff --git a/client/src/utils/error-handler.js b/client/src/utils/error-handler.js index edc2fe6..5e25d94 100644 --- a/client/src/utils/error-handler.js +++ b/client/src/utils/error-handler.js @@ -16,7 +16,7 @@ export function initErrorHandler() { * 增强版 request 函数,带全局错误处理 */ async function request(method, path, data = null, token = null, options = {}) { - const BASE_URL = 'https://wdkj.yuzhiran.com.cn' + const BASE_URL = 'https://wdkjwx.yzrcloud.cn' const DEV_URL = 'http://127.0.0.1:3001' const isDev = import.meta.env.DEV const API_BASE = isDev ? DEV_URL : BASE_URL diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 3e41d12..dcf4c81 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -40,7 +40,7 @@ services: - VPAY_APPKEY_SANDBOX=${VPAY_APPKEY_SANDBOX:-} - VPAY_APPKEY_PROD=${VPAY_APPKEY_PROD:-} - VPAY_MCH_ID=${VPAY_MCH_ID:-} - - SITE_URL=https://www.wdkj.yuzhiran.com.cn + - SITE_URL=https://wdkj.yzrcloud.cn - INVITE_REWARD_CREDITS=${INVITE_REWARD_CREDITS:-100} - COST_PER_WORK=${COST_PER_WORK:-10} - FREE_DAILY_QUOTA=${FREE_DAILY_QUOTA:-20} diff --git a/server/src/index.js b/server/src/index.js index b200f18..b205418 100755 --- a/server/src/index.js +++ b/server/src/index.js @@ -79,7 +79,7 @@ app.use('/api', (req, res, next) => { const referer = String(req.headers.referer || '') let source = '直接访问' if (referer.includes('servicewechat.com')) source = '小程序' - else if (referer.includes('/h5') || referer.includes('wdkj.yuzhiran.com.cn')) source = 'H5' + else if (referer.includes('/h5') || referer.includes('wdkj.yuzhiran.com.cn') || referer.includes('wdkj.yzrcloud.cn')) source = 'H5' const os = /windows/i.test(ua) ? 'Windows' : /iphone|ipad|ios/i.test(ua) ? 'iOS' : /android/i.test(ua) ? 'Android' : /mac os/i.test(ua) ? 'MacOS' : '' const browser = /MicroMessenger/i.test(ua) ? '微信' : /Mobile Safari/i.test(ua) ? 'Safari' : /Edge\//i.test(ua) ? 'Edge' : /Chrome/i.test(ua) ? 'Chrome' : /Firefox/i.test(ua) ? 'Firefox' : '' const device = /Mobile|iPhone/i.test(ua) || (/Android/i.test(ua) && /Mobile/i.test(ua)) ? '移动端' : '桌面端'