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); } }