main
home.fengxinyhyl 8 months ago
parent 3f619188bf
commit 1595b738fa
  1. 3
      app/common/repositories/store/product/ProductRepository.php
  2. 2
      crmeb/listens/AppEnd.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;
}

@ -27,7 +27,7 @@ class AppEnd
if(is_array($response) and (strpos($jsonRes, '<!DOCTYPE html>') === false and strpos($jsonRes, '<span') === false)) {
Log::info(Request::url(). ' params: ' . json_encode($params) ." response: " . $jsonRes );
}else{
Log::info(Request::url(). ' params: ' . json_encode($params));
Log::info(Request::url(). ' params: ' . json_encode($params) ." response: " . $jsonRes );
}
// Log::info(" token: " . $token);
}

Loading…
Cancel
Save