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,