diff --git a/app/common/service/SkuAttributeService.php b/app/common/service/SkuAttributeService.php index 7b2e615..c25b095 100644 --- a/app/common/service/SkuAttributeService.php +++ b/app/common/service/SkuAttributeService.php @@ -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; }