fix: NUXT_PUBLIC_APP_ID 改为数字主键,接口基址切正式域名

1. appId 语义修正
   NUXT_PUBLIC_APP_ID 之前填的是 productCode('website'),但下游拿它去请求
   /api/app/product/detail/{productId},后端按 Integer 解析主键,于是转换失败。
   改为 app_product.product_id 数字主键(种子数据为 42);nuxt.config.ts 的
   缺省值同步去掉 'website' 回退——留空时下游按空值降级,绝不回退到编码值。

2. 接口基址切 hjc-api.sitelnk.cn
   .env.example / .env.production / nuxt.config.ts 的缺省值与 preconnect、
   dns-prefetch 一并从 hjc-api.websoft.top 改为正式域名;scripts/ 与
   outputs/ 文档里的旧地址同步更新。

注:本提交含若干文件的 CRLF/LF 行尾归一,实际内容改动见 git diff --ignore-cr-at-eol。
This commit is contained in:
2026-09-25 05:22:58 +08:00
parent 3d3a377221
commit 4a5a8f306a
12 changed files with 582 additions and 564 deletions
+6 -3
View File
@@ -16,16 +16,19 @@
# ---------- 租户 / 应用 / 模板 ----------
# 固定租户 ID。生产环境留空,改由域名自动识别
NUXT_PUBLIC_TENANT_ID=
NUXT_PUBLIC_APP_ID=website
# 应用产品 ID(app_product.product_id 数字主键,如 42)。
# 注意:不是 productCode('website'),按编码查询会打到
# /api/app/product/detail/{productId} 导致 Integer 转换失败。
NUXT_PUBLIC_APP_ID=
# 默认模板 ID
NUXT_PUBLIC_TEMPLATE_ID=
# 强制模板 ID:设置后优先级最高,覆盖应用/站点绑定(仅本地调试用)
NUXT_PUBLIC_FORCE_TEMPLATE_ID=
# ---------- 后端接口地址 ----------
# 内容/CMS 接口。生产为 https://hjc-api.websoft.top/api
# 内容/CMS 接口。生产为 https://hjc-api.sitelnk.cn/api
NUXT_PUBLIC_MODULES_API_BASE=
# 租户/模板解析接口。生产为 https://hjc-api.websoft.top(无 /api 后缀)
# 租户/模板解析接口。生产为 https://hjc-api.sitelnk.cn(无 /api 后缀)
NUXT_PUBLIC_APP_API_BASE=
# 图片/文件服务器。留空则从 APP_API_BASE 自动推导
NUXT_PUBLIC_FILE_SERVER_BASE=