From c7282f94caed412d1f6bdae36d1e6405e0c7fb77 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Thu, 25 Jan 2024 11:06:08 +0800 Subject: [PATCH] update --- app/adminapi/logic/supplier/SupplierLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/adminapi/logic/supplier/SupplierLogic.php b/app/adminapi/logic/supplier/SupplierLogic.php index 69c8de743..d7c730ec0 100644 --- a/app/adminapi/logic/supplier/SupplierLogic.php +++ b/app/adminapi/logic/supplier/SupplierLogic.php @@ -51,7 +51,7 @@ class SupplierLogic extends BaseLogic 'supplier_name' => $params['supplier_name'], 'supplier_introduction' => $params['supplier_introduction'] ?? '', 'brand_category' => $params['brand_category'] ?? '', - 'supplier_photos' => !empty($params['supplier_photos']) ? $params['supplier_photos'] : null, + 'supplier_photos' => !empty($params['supplier_photos']) ? json_encode($params['supplier_photos']) : null, 'supplier_group' => $params['supplier_group'] ?? 0, 'supplier_category' => $params['supplier_category'] ?? 0, 'supplier_grade' => $params['supplier_grade'] ?? 0, @@ -102,7 +102,7 @@ class SupplierLogic extends BaseLogic 'supplier_name' => $params['supplier_name'], 'supplier_introduction' => $params['supplier_introduction'] ?? '', 'brand_category' => $params['brand_category'] ?? '', - 'supplier_photos' => !empty($params['supplier_photos']) ? $params['supplier_photos'] : null, + 'supplier_photos' => !empty($params['supplier_photos']) ? json_encode($params['supplier_photos']) : null, 'supplier_group' => $params['supplier_group'] ?? 0, 'supplier_category' => $params['supplier_category'] ?? 0, 'supplier_grade' => $params['supplier_grade'] ?? 0,