|
| 1 | +--- |
| 2 | +title: 1.2.0 发布说明 |
| 3 | +description: MatrixShop 1.2.0 的新增功能、管理员商品维护流程和验证结果。 |
| 4 | +--- |
| 5 | + |
| 6 | +# MatrixShop 1.2.0 发布说明 |
| 7 | + |
| 8 | +发布时间:`2026-03-31` |
| 9 | + |
| 10 | +## 版本定位 |
| 11 | + |
| 12 | +`1.2.0` 是在 `1.1.x` 稳定基线上继续补管理功能的功能版本。 |
| 13 | + |
| 14 | +这一版的重点不是调整玩家侧业务链,而是补齐管理员对 `SystemShop` 商品的快速维护能力。 |
| 15 | + |
| 16 | +## 本版本重点 |
| 17 | + |
| 18 | +### 管理员快速上架 |
| 19 | + |
| 20 | +管理员现在可以直接拿着主手物品,将商品快速写入 `SystemShop` 分类: |
| 21 | + |
| 22 | +```text |
| 23 | +/matrixshopadmin goods add <category> <price> [buy-max] [product-id] |
| 24 | +``` |
| 25 | + |
| 26 | +这个命令会: |
| 27 | + |
| 28 | +- 读取主手物品 |
| 29 | +- 写入 `SystemShop/shops/<category>.yml` |
| 30 | +- 自动生成或使用指定 `product-id` |
| 31 | +- 写入价格、限购、显示名和 Lore |
| 32 | +- 自动重载 `SystemShop` |
| 33 | + |
| 34 | +### 管理员快速编辑 |
| 35 | + |
| 36 | +管理员现在也可以直接维护已存在的系统商店商品: |
| 37 | + |
| 38 | +```text |
| 39 | +/matrixshopadmin goods select <category> <product-id> |
| 40 | +/matrixshopadmin goods edit price <value> |
| 41 | +/matrixshopadmin goods edit buy-max <value> |
| 42 | +/matrixshopadmin goods edit currency <key|default> |
| 43 | +/matrixshopadmin goods edit name <text...> |
| 44 | +/matrixshopadmin goods edit item |
| 45 | +/matrixshopadmin goods edit remove |
| 46 | +``` |
| 47 | + |
| 48 | +其中: |
| 49 | + |
| 50 | +- `edit item` 会使用管理员当前主手物品覆盖商品本体 |
| 51 | +- `edit remove` 会直接移除该商品 |
| 52 | +- `currency default` 会移除商品级货币覆盖,回退到上层配置 |
| 53 | + |
| 54 | +### 菜单内选中编辑目标 |
| 55 | + |
| 56 | +在系统商店分类页中,拥有管理员商品权限的玩家可以对商品执行: |
| 57 | + |
| 58 | +- `Shift + 右键` |
| 59 | + |
| 60 | +来直接把该商品设为当前编辑目标,然后继续使用后台 `goods edit ...` 系列命令。 |
| 61 | + |
| 62 | +## 配置影响 |
| 63 | + |
| 64 | +这一版不引入新的配置破坏性变更。 |
| 65 | + |
| 66 | +但如果你要使用管理员快速维护商品,建议确认: |
| 67 | + |
| 68 | +- `matrixshop.admin.goods` 权限已正确分配 |
| 69 | +- 管理员理解 `goods add` 与 `goods edit` 会直接写回默认配置文件 |
| 70 | + |
| 71 | +## 验证 |
| 72 | + |
| 73 | +本版本发布前已完成: |
| 74 | + |
| 75 | +- `bash ./gradlew build` |
| 76 | +- `paper-1.12.2` smoke boot |
| 77 | +- real-client 管理员命令回归 |
| 78 | + |
| 79 | +实际验证链: |
| 80 | + |
| 81 | +1. `/give codex-bot diamond_sword 1` |
| 82 | +2. `/matrixshopadmin goods add weapon 777 9 codex_admin_probe_20260331` |
| 83 | +3. `/matrixshopadmin goods select weapon codex_admin_probe_20260331` |
| 84 | +4. `/matrixshopadmin goods edit price 888` |
| 85 | +5. `/matrixshopadmin goods edit buy-max 12` |
| 86 | +6. `/matrixshopadmin goods edit name Codex Admin Blade` |
| 87 | +7. `/matrixshopadmin goods edit remove` |
| 88 | + |
| 89 | +## 相关链接 |
| 90 | + |
| 91 | +- [GitHub Releases](https://github.com/54895y/MatrixShop/releases) |
| 92 | +- [1.2.0 GitHub Release](https://github.com/54895y/MatrixShop/releases/tag/v1.2.0) |
| 93 | +- [CHANGELOG](https://github.com/54895y/MatrixShop/blob/main/CHANGELOG.md) |
| 94 | +- [1.1.1 发布说明](./release-notes-1-1-1) |
0 commit comments