1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <?php
|
| namespace app\branch\model\category;
|
| use app\common\model\branch\Category as CategoryModel;
| use app\branch\model\activity\Activity as ActivityModel;
|
| /**
| * 主营分类模型
| */
| class Category extends CategoryModel
| {
| /**
| * 分类详情
| */
| public static function detail($category_id)
| {
| return (new static())->find($category_id);
| }
|
|
|
| }
|
|