添加网站文件
This commit is contained in:
21
application/api/controller/GoodsCategory.php
Normal file
21
application/api/controller/GoodsCategory.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user