Choice->getAlibabaCategory($extend_id); } else { $category = $this->Choice->getAlibabaCategory($extend_id)['categoryInfo'][0]['childCategorys'] ?? []; } } else { if (empty($cloud_id) && $extend_id) return error('', '参数错误cloud_id不能为空'); // 判断直接使用远程第三方云端分类 $pid = input('categoryID', 0);// 上级id $goods_category_model = new SupplyGoodsCategory(); $condition[] = ['site_id', '=', 0]; if (!empty($pid)) { $condition[] = ['pid', '=', $pid]; } else { $condition[] = ['pid', '=', 0]; } $category = $goods_category_model->getCategoryList($condition, 'category_id as id,category_id_1 as extend_id,category_name as name,level')['data']; } return $category; } public function searchByKeyword() { return input(); } }