quanwei
2025-12-05 feda780069d64479c0c20493603717e100655da9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
 
namespace app\common\model\plus\plus;
 
use app\common\model\BaseModel;
 
/**
 * 插件模型
 */
class Category extends BaseModel
{
    protected $pk = 'plus_category_id';
    protected $name = 'plus_category';
 
    /**
     * 权限信息
     */
    public static function detail($where)
    {
        if(is_array($where)){
            return (new static())->where($where)->find();
        } else{
            return (new static())->where('plus_category_id', '=', $where)->find();
        }
    }
}