chore(domain): 官网接口基址迁 api.gxhuijicai.com
后端对外域名由 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 预检放行。
This commit is contained in:
@@ -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}`。
|
||||
|
||||
Reference in New Issue
Block a user