liufumingren
|
16d5f18fa1
|
feat(openapi): interface_type_id=2 强制合约注入 + 全链路 store_id 防护
核心改动:
- openapi.js: 新增 resolveOpenapiContract 强制合约解析(required:true JOIN),
dispatchOpenapiMethod 统一注入上下文(setInfo)
- 5个 openapiMethods: 移除重复 resolveAppInfo, 统一使用 this.getInfo()
- deliveryorder/entryorder/stockout: findByPk(itemId) 后增加 store_id 一致性校验
安全修复:
- 修复 itemId 路径跨货主越权漏洞(FindByPk 无 store_id 过滤)
- deliveryorder/inventory/singleitem 查询补全 store_id 过滤
- 合约缺失返回 403 而非穿透业务层
测试覆盖: 9方法×3层防护(合约/注入/过滤)全部通过集成测试
|
2026-07-15 00:10:40 +08:00 |
|
liufumingren
|
7f05b26db2
|
1
|
2026-07-04 21:40:31 +08:00 |
|
liufumingren
|
5ef99e3bed
|
1
|
2026-07-01 14:00:59 +08:00 |
|
liufumingren
|
77435aeb79
|
1
|
2026-06-23 18:48:33 +08:00 |
|
liufumingren
|
d743e67b9d
|
1
|
2026-06-17 01:18:55 +08:00 |
|
liufumingren
|
e23bf4f15e
|
1
|
2026-05-17 03:23:57 +08:00 |
|
liufumingren
|
622869787a
|
feat: sync workspace changes
|
2026-04-17 19:21:57 +08:00 |
|
liufumingren
|
3d824a3a1d
|
chore: sync lint and service fixes
|
2026-04-09 01:36:49 +08:00 |
|
|
|
63b4536766
|
chore: initialize wms project
|
2026-03-16 14:01:22 +08:00 |
|