|
|
@@ -67,4 +67,14 @@ class Config extends BaseModel
|
|
|
}
|
|
|
return $systemInfo;
|
|
|
}
|
|
|
+
|
|
|
+ //获取指定配置的数据
|
|
|
+ public static function getFieldValue($field)
|
|
|
+ {
|
|
|
+ $config = self::where('field', $field)->find();
|
|
|
+ if (!empty($config['type']) && $config['type'] == 'rich_text') {
|
|
|
+ return $config['val'] ? json_decode($config['val'], true) : '';
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ }
|
|
|
}
|