弹幕、分类下拉、属性下拉、
This commit is contained in:
@@ -39,6 +39,21 @@ class PostCategoryService
|
||||
return new $this->validator;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统list
|
||||
*/
|
||||
public function preset($params)
|
||||
{
|
||||
$where = [];
|
||||
if(isset($params['parent_id']) && $params['parent_id']) {
|
||||
$where['parent_id'] = $params['parent_id'];
|
||||
}else{
|
||||
$where['parent_id'] = 0;
|
||||
}
|
||||
$result = $this->logic->getList($where)->toArray();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统list
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user