修复学生登录筛选

This commit is contained in:
东宝书记 committed 2021-05-23 11:16:50 +08:00
1 parent 45fee42b6f
commit ac2539433a
8 files changed
+39 -26

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<?php
namespace app\tools\controller;
// 引用控制器基类
use app\BaseController;
class Teach extends BaseController
{
// 获取类别列表
public function srcChildren()
{
// 获取表单数据
$src = request()->only([
'limit' => '100'
,'p_id'
], 'post');
// 查询类别
$category = new \app\system\model\Category;
$data = $category->srcChild($src)
->visible([
'id'
,'title'
]);
$data = reSetObject($data, $src);
return json($data);
}
}