diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 0ec945e..1e7b8ee 100755 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -1267,7 +1267,7 @@ class ProductRepository extends BaseRepository */ public function getContent($productId) { - $key = '_get_content' . $productId; + $key = '_get_content1' . $productId; $res = Cache::get($key); if ($res) return json_decode($res, true); $res = app()->make(ProductContentRepository::class)->getWhere(['product_id' => $productId]); @@ -1399,6 +1399,7 @@ class ProductRepository extends BaseRepository $product['attr'] = $attr; $product['sku'] = $sku; $product['isRelation'] = $isRelation; + $product['content'] = $this->getContent($product['product_id']); return $product; } diff --git a/crmeb/listens/AppEnd.php b/crmeb/listens/AppEnd.php index 7977da4..9396d85 100644 --- a/crmeb/listens/AppEnd.php +++ b/crmeb/listens/AppEnd.php @@ -27,7 +27,7 @@ class AppEnd if(is_array($response) and (strpos($jsonRes, '') === false and strpos($jsonRes, '