Commit 581e4a80 authored by hangjun83's avatar hangjun83

百化产品接口更新

parent 2105d9fb
...@@ -59,11 +59,11 @@ class BhuaProductsService ...@@ -59,11 +59,11 @@ class BhuaProductsService
if(!$brand){ if(!$brand){
throw new \Exception('502','没找到相应品牌id'); throw new \Exception('502','没找到相应品牌id');
} }
$products = $this->bhuaProductService->productRepository->getProductsList(['bid' => $params['brand_id']], $offset, $limit); $products = $this->bhuaProductService->productRepository->getProductsList(['b_id' => $params['brand_id']], $offset, $limit);
$total = 0; $total = 0;
if($products){ if($products){
$products = app(ProductsTransformer::class)->transform($products); $products = app(ProductsTransformer::class)->transform($products);
$brandsTotal = $this->bhuaProductService->brandsRepository->count(['bid' => $params['brand_id']]); $total = $this->bhuaProductService->brandsRepository->count(['b_id' => $params['brand_id']]);
} }
$dataReturn = []; $dataReturn = [];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment