Files
qipai/docs/devlogs/2026-06-18-M03-B-装修广告与媒体.md
T

31 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# M03-B 装修、广告与媒体
- 日期:2026-06-18
- 起始 commit`7e9b534`
- 工程 commit`f746242`
- 推送校验:`HEAD == origin/main == f746242`
- ENGINEERING_DELTA=YES
- 子阶段状态:DONE
## 工程增量
- 平台、租户、门店三级广告及权限边界。
- 门店装修草稿、版本递增、发布和旧版本归档。
- JPEG/PNG/WebP 上传、解码校验、限像素、压缩转 WebP。
- 租户/门店目录隔离、素材哈希去重和数据库归属校验。
- 装修组件采用版本化 Schema,首版支持 HERO、NOTICE、GALLERY、CONTACT、ROOM_LIST。
## 验证
- Windows 全量 `npm test` 通过。
- WSL MySQL 8.4.9`up → verify → down → up → verify` 通过。
- 真实迁移语句:up 44、verify 26、down 41。
- 实测装修版本 1 发布后被版本 2 归档、门店广告读取和平台广告越权拒绝。
## 影响
- 新增 `sharp` 图片处理依赖。
- 生产上传根目录仍为后端 `shared/uploads`,由部署目录映射到统一上传目录。
- 生产迁移和目录权限配置必须通过 Ubuntu 菜单执行。
- 下一阶段:M03-C 地图选店和距离。