更新前端文件
This commit is contained in:
@@ -25,7 +25,8 @@ class Config extends Admin{
|
||||
*/
|
||||
public function group(ConfigModel $config){
|
||||
if ($this->request->isAjax()) {
|
||||
# code...
|
||||
$this->data['code'] = 1;
|
||||
return $this->data;
|
||||
}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();
|
||||
|
||||
@@ -26,6 +26,11 @@ class Index extends Admin{
|
||||
* @title 更新缓存
|
||||
*/
|
||||
public function clear(){
|
||||
if ($this->request->isAjax()) {
|
||||
# code...
|
||||
}else{
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user