This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<?php
namespaceapp\integral\controller\api;
classProductextendsBase
{
/**
* 获取一级分类
* @date 2022-11-08
*/
publicfunctionlistCategory()
{
$product_logic=new\app\integral\logic\Product();
$result=$product_logic->listCategory();
returnjson($result);
}
/**
* 获取商品列表
* @param int $param ['category_id'] 分类ID
* @param string $param ['keyword'] 关键字
* @param int $param ['is_recommend'] 是否推荐 0--不限制 1--已推荐