From 76769e131c424d28b8a7d53a6dad2972a10ec843 Mon Sep 17 00:00:00 2001 From: From-wh Date: Tue, 29 Sep 2026 14:50:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=AE=9E=E7=89=A9=E5=95=86=E5=93=81):=20?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E8=A1=A5=E5=85=85=20sort?= =?UTF-8?q?=20=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84=EF=BC=8C=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E7=AE=A1=E7=90=86=E7=AB=AF=E6=8E=92=E5=BA=8F=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/product/normal/service/ProductServices.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/modules/product/normal/service/ProductServices.php b/backend/modules/product/normal/service/ProductServices.php index e6164ddf8..41e1bd101 100644 --- a/backend/modules/product/normal/service/ProductServices.php +++ b/backend/modules/product/normal/service/ProductServices.php @@ -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);