Skip to content
关注公众号,获取新课通知

获取原有系统设置


控制器 app/controller/admin/SysSetting.php

php
protected $excludeValidateCheck = [
	'get',
	//...
];
public function get()
   {
       $data = $this->M->find(1);
       return showSuccess($data);
   }

模型 app/model/SysSetting.php

php
protected $json = ['upload_config','alipay','wxpay'];
protected $jsonAssoc = true;

路由 router/admin.php

php
Route::get('sysconfig','admin.SysSetting/get');