From d085e02ecf4035fa5f482777e4b9d509fdf654dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 11 Aug 2026 11:05:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor(cms):=20=E8=BF=81=E7=A7=BBCMS=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8E=A5=E5=8F=A3=E5=88=B0=E7=8B=AC=E7=AB=8Bcms-api?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增cmsRequest工具,基于request封装,默认baseURL为cms-api - 改用cmsRequest替换所有cms相关请求,确保请求走独立域名 - 配置三环境新增CMS_API_BASE_URL及导出CmsBaseUrl常量 - 解决CMS接口走shop-api时返回404的问题,避免小程序域名白名单冲突 - 统一修改34个cms API模块的261处调用,保持接口行为一致 - 修复部分拼接全URL方式改为相对路径调用cmsRequest - 更新注释说明并调整相关接口调用代码 - 兼容macOS sed替换问题,采用perl命令完成批量替换 --- .idea/workspace.xml | 66 ++++----------------- src/components/common/EmptyState/index.tsx | 13 ++-- src/components/common/FixedButton/index.tsx | 17 +++--- 3 files changed, 30 insertions(+), 66 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9f6d825..a9bea2b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,47 +4,7 @@