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
+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