This commit is contained in:
weiz 2024-01-25 11:06:08 +08:00
parent 7ef385d853
commit c7282f94ca

View File

@ -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,