Browse Source

Update Data.php

邹景立 2 years ago
parent
commit
03a51197c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/data/controller/api/Data.php

+ 1 - 1
app/data/controller/api/Data.php

@@ -23,7 +23,7 @@ class Data extends Controller
     public function getData()
     {
         $data = $this->_vali(['name.require' => '数据名称不能为空!']);
-        if (isset(SystemBase::items('页面数据')[$data['name']])) {
+        if (isset(SystemBase::items('页面内容')[$data['name']])) {
             $this->success('获取数据对象', sysdata($data['name']));
         } else {
             $this->success('获取数据失败', []);