代码更新

This commit is contained in:
2019-07-01 16:13:59 +08:00
parent d141eb7c24
commit 86c24dc40e
30 changed files with 13731 additions and 94 deletions
+16 -1
View File
@@ -9,6 +9,7 @@
namespace app\controller\admin;
use app\controller\Admin;
use app\model\Config as ConfigModel;
class Config extends Admin{
@@ -22,7 +23,21 @@ class Config extends Admin{
/**
* @title 系统首页
*/
public function group(){
public function group(ConfigModel $config){
if ($this->request->isAjax()) {
# code...
}else{
$this->data['id'] = $this->request->param('id', 1);
$res = $config->where(array('status' => 1, 'group' => $this->data['id']))->field('id,name,title,extra,value,remark,type')->order('sort')->select();
$this->data['list'] = $res->toArray();
return $this->data;
}
}
/**
* @title 主题设置
*/
public function themes(){
}
}