feature/main20240421
郭嘉 11 months ago
parent 1ae72635b6
commit f77d196f4d
  1. 2
      app/api/controller/Category.php

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

Loading…
Cancel
Save