fix(实物商品): 商品列表补充 sort 字段映射,对齐管理端排序展示

This commit is contained in:
From-wh 2026-09-29 14:50:12 +08:00 committed by 吴昊天
parent d52515f049
commit 76769e131c

View File

@ -409,9 +409,10 @@ class ProductServices
->select()
->toArray();
// 字段映射:eb_product_center.name → store_name
// 字段映射:eb_product_center列名 → 前端期望字段名
foreach ($list as &$item) {
$item['store_name'] = $item['name'] ?? '';
$item['sort'] = $item['sort_order'] ?? 0;
}
unset($item);