4.0日常更新

This commit is contained in:
2019-10-08 16:34:17 +08:00
parent 07faf60918
commit e8795716ec
16 changed files with 177 additions and 211 deletions

View File

@@ -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();