mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-04 09:02:49 +08:00
文章可设置类型用于不同而类型
This commit is contained in:
@@ -19,7 +19,7 @@ class Category extends Common
|
||||
{
|
||||
//
|
||||
|
||||
$list = ModelCategory::getListLevel();
|
||||
$list = ModelCategory::getListLevel('',$this->request->param('type',1));
|
||||
|
||||
if($this->request->isAjax()){
|
||||
return json_message($list);
|
||||
@@ -39,7 +39,7 @@ class Category extends Common
|
||||
{
|
||||
//
|
||||
|
||||
$list = ModelCategory::getListLevel();
|
||||
$list = ModelCategory::getListLevel('',$this->request->param('type',1));
|
||||
|
||||
View::assign('list_category',$list);
|
||||
|
||||
@@ -107,7 +107,7 @@ class Category extends Common
|
||||
|
||||
$model_category = ModelCategory::find($id);
|
||||
|
||||
$list = ModelCategory::getListLevel();
|
||||
$list = ModelCategory::getListLevel('',$this->request->param('type',1));
|
||||
|
||||
View::assign('list_category',$list);
|
||||
View::assign('category',$model_category);
|
||||
|
||||
Reference in New Issue
Block a user