123456789101112131415161718192021222324 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use think\Db;
- /**
- * 示例接口
- */
- class Banner extends Api
- {
- protected $noNeedLogin = ['*'];
- protected $noNeedRight = ['*'];
- //轮播图
- public function banner()
- {
- $place = input('place',1);
- $list = Db::name('banner')->field('id, title, image, url, opentype')->where(['status' => 1,'place' => $place])->order('weigh', 'desc')->select();
- $list = list_domain_image($list, ['image']);
- $this->success(1, $list);
- }
- }
|