diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 279862e4..9732ab71 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -751,8 +751,10 @@ class ProductRepository extends BaseRepository $data['attrValue'] = $arr; $content = $data['content']['content'] ?? ''; + $data['content_arr'] = []; if (isset($data['content']) &&$data['content']['type']==1){ $arr = json_decode($content); + $data['content_arr'] = $arr; if($arr){ $content=''; foreach($arr->image as $k=>$v){