mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-28 21:40:50 +00:00
fix(实物商品): 商品列表补充 sort 字段映射,对齐管理端排序展示
This commit is contained in:
parent
d52515f049
commit
76769e131c
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user