From 1595b738fa5455028527dfb9a034114128cfe7e0 Mon Sep 17 00:00:00 2001 From: "home.fengxinyhyl" Date: Sun, 14 Apr 2024 10:14:18 +0800 Subject: [PATCH] fix bug --- app/common/repositories/store/product/ProductRepository.php | 3 ++- crmeb/listens/AppEnd.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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, '