mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Data.php
This commit is contained in:
parent
312c46bc31
commit
5b73bc9450
@ -23,7 +23,8 @@ class Data extends Controller
|
||||
public function getData()
|
||||
{
|
||||
$data = $this->_vali(['name.require' => '数据名称不能为空!']);
|
||||
if (isset(SystemBase::items('页面内容')[$data['name']])) {
|
||||
$extra = ['about', 'slider', 'agreement', 'cropper'];
|
||||
if (isset(SystemBase::items('页面内容')[$data['name']]) || in_array($data['name'], $extra)) {
|
||||
$this->success('获取数据对象', sysdata($data['name']));
|
||||
} else {
|
||||
$this->error('获取数据失败', []);
|
||||
|
Loading…
x
Reference in New Issue
Block a user