1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user