feat: 域名迁移至yzrcloud.cn——小程序API切wdkjwx、H5/SEO切wdkj(规避yuzhiran.com.cn主域备案风险);来源识别与sitemap同步;版本v1.4.10

This commit is contained in:
Hermes Agent
2026-12-01 18:26:11 +08:00
parent 8b9ff56360
commit 5fdda6efc7
9 changed files with 16 additions and 10 deletions
+6
View File
@@ -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 迁移环境变量补齐 + 容器网络修复);趋势页筛选按钮单行紧凑化、产品图标修复
+1 -1
View File
@@ -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 自动更新。
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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() {
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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 验证等场景)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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}
+1 -1
View File
@@ -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)) ? '移动端' : '桌面端'