You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
588 B
28 lines
588 B
<?php
|
|
|
|
namespace app\api\controller;
|
|
|
|
use app\common\controller\Api;
|
|
use app\admin\model\index\Page;
|
|
/**
|
|
* 首页接口
|
|
*/
|
|
class Index extends Api
|
|
{
|
|
protected $noNeedLogin = ['*'];
|
|
protected $noNeedRight = ['*'];
|
|
|
|
/**
|
|
* 首页
|
|
*
|
|
*/
|
|
public function index()
|
|
{
|
|
$this->success('请求成功');
|
|
}
|
|
public function getimg(){
|
|
$page = new Page();
|
|
$list = $page->field('img_url,content_url')->where('is_del',0)->order('paixu',"asc")->order('create','desc')->select();
|
|
return $this->success('请求成功',$list);
|
|
}
|
|
}
|
|
|