1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace Page\Src;
- use Dever;
- class Api
- {
- /*
- public function test()
- {
- return Dever::load('page/lib/data')->get('focus', '焦点图', 5);
- }
- public function test_1()
- {
- return Dever::load('page/lib/data')->getPage(1);
- }*/
- # 获取页面下的数据
- public function page()
- {
- $path = Dever::input('path');
- return Dever::load('page/lib/data')->getPage($path);
- }
- # 获取模块下的数据
- public function module()
- {
- return Dever::load('page/lib/data')->get(Dever::input('key'), Dever::input('name'), Dever::input('num', 10));
- }
- }
|