work/application/common/Model/SystemConfig.php
2024-01-03 09:54:57 +08:00

19 lines
320 B
PHP
Executable File

<?php
namespace app\common\Model;
class SystemConfig extends CommonModel
{
protected $pk = 'id';
public function info()
{
$config = $this->select();
$data = [];
foreach ($config as $item) {
$data[$item['name']] = $item['value'];
}
return $data;
}
}