4.0日常更新
This commit is contained in:
@@ -35,6 +35,12 @@ class Config extends Model {
|
||||
return $type_text[0];
|
||||
}
|
||||
|
||||
protected function getGroupTextAttr($value, $data) {
|
||||
$config = Cache::get('system_config');
|
||||
$group = $config['config_group_list'];
|
||||
return isset($group[$data['group']]) ? $group[$data['group']] : '未分组';
|
||||
}
|
||||
|
||||
public function lists() {
|
||||
$map = array('status' => 1);
|
||||
$res = $this->where($map)->field('type,name,value')->select();
|
||||
|
||||
Reference in New Issue
Block a user