wang hou sheng 11 months ago
parent 04edca09b5
commit f692fa325b
  1. 8
      app/api/service/Goods.php

@ -240,8 +240,12 @@ class Goods extends GoodsService
'paihang' => 1,
'categoryId' => $v['category_id'],
], 3);
$list2 = $goodsList->toArray()['data'];
$v['goods_list'] = $this->newFormatGoodsList($list2);
$v['goods_list'] = [];
if (!$goodsList->isEmpty()) {
$list2 = $goodsList->toArray()['data'];
$v['goods_list'] = $this->newFormatGoodsList($list2);
}
}
return $list;
}

Loading…
Cancel
Save