feature/main20240421
郭嘉 9 months ago
parent a398f33a7f
commit faf254b49a
  1. 4
      app/api/controller/Category.php

@ -52,8 +52,8 @@ class Category extends Controller
$hasGoods = GoodsCategoryRel::getcategory($this->storeId,$merchantId);
$arr = [];
$arr1 = [];
if (isset($hasGoods['data']) && !empty($hasGoods['data'])) {
foreach ($hasGoods['data'] as $v) {
if (isset($hasGoods) && !empty($hasGoods)) {
foreach ($hasGoods as $v) {
$arr[] = $v['category_id'];
}
}

Loading…
Cancel
Save