...
|
...
|
@@ -11,6 +11,7 @@ |
|
|
namespace app\portal\controller;
|
|
|
|
|
|
use app\admin\model\RouteModel;
|
|
|
use app\user\model\UserModel;
|
|
|
use cmf\controller\AdminBaseController;
|
|
|
use app\portal\model\PortalCategoryModel;
|
|
|
use think\Db;
|
...
|
...
|
@@ -126,7 +127,13 @@ class AdminCategoryController extends AdminBaseController |
|
|
|
|
|
$portalCategoryModel = new PortalCategoryModel();
|
|
|
$categoriesTree = $portalCategoryModel->adminCategoryTree($category['parent_id'], $id);
|
|
|
|
|
|
$User=new UserModel();
|
|
|
$expert_info = $User->getExpert($category['expert']);
|
|
|
if (!empty($expert_info->toArray())){
|
|
|
$expert=$expert_info->toArray()['0'];
|
|
|
}else{
|
|
|
$expert='';
|
|
|
}
|
|
|
$themeModel = new ThemeModel();
|
|
|
$listThemeFiles = $themeModel->getActionThemeFiles('portal/List/index');
|
|
|
$articleThemeFiles = $themeModel->getActionThemeFiles('portal/Article/index');
|
...
|
...
|
@@ -136,6 +143,7 @@ class AdminCategoryController extends AdminBaseController |
|
|
|
|
|
$category['alias'] = $alias;
|
|
|
$this->assign($category);
|
|
|
$this->assign('expert_info',$expert);
|
|
|
$this->assign('list_theme_files', $listThemeFiles);
|
|
|
$this->assign('article_theme_files', $articleThemeFiles);
|
|
|
$this->assign('categories_tree', $categoriesTree);
|
...
|
...
|
|