Files
duolamaojiazhen/application/api/controller/GoodsCategory.php
2025-12-22 13:59:40 +08:00

21 lines
610 B
PHP

<?php
namespace app\api\controller;
use app\api\logic\GoodsCategoryLogic;
class GoodsCategory extends ApiBase{
public $like_not_need_login = ['lists'];
/**
* Notes:获取商品分类
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @author: 2021/3/6 18:49
*/
public function lists(){
$client = $this->request->get('client',1);
$cateogry = GoodsCategoryLogic::categoryThirdTree($client);
$this->_success('获取成功',$cateogry);
}
}