This commit is contained in:
2025-12-11 16:27:18 +08:00
parent 69a30ae5e4
commit 1e6baa01a8
+5 -5
View File
@@ -85,11 +85,11 @@ class SkuAttributeService
*/
public function beforeServiceUpdate($data, Request $request)
{
// $options = [];
// foreach ($data['options_json'] as $v){
// $options[] = $v['value'];
// }
// $data['options_json'] = json_encode($options, JSON_UNESCAPED_UNICODE);
$options = [];
foreach ($data['options_json'] as $v){
$options[] = $v['value'];
}
$data['options_json'] = json_encode($options, JSON_UNESCAPED_UNICODE);
return $data;
}