You cannot 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
486 B
PHTML

2 years ago
<?php
/**
* Created by PhpStorm.
* User: xmy 280564871@qq.com
* Date: 2017/4/8
* Time: 11:25
*/
namespace App\Controller;
use App\Model\AdvModel;
class AdvController extends BaseController{
/**
* 广告轮播图
* author: xmy 280564871@qq.com
*/
public function get_slider(){
$model = new AdvModel();
$data = $model->getAdv("slider_app",5);
if(empty($data)){
$this->set_message(1033,"暂无数据");
}else{
$this->set_message(200,"成功",$data);
}
}
}