初始化代码
This commit is contained in:
23
application/api/controller/Banner.php
Normal file
23
application/api/controller/Banner.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
use think\Controller;
|
||||
|
||||
class Banner extends Common
|
||||
{
|
||||
//轮播图列表
|
||||
public function get_banner_list()
|
||||
{
|
||||
$reslut = model('Banner')->get_banner_list();
|
||||
return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
public function get_room_charm_rank()
|
||||
{
|
||||
$rid = input('rid', 0); //房间号。
|
||||
$time = input('time', 0); //统计周期 1日2周3总
|
||||
$type = input('type', 0); //1 贡献,2魅力
|
||||
$reslut = model('Room')->get_room_charm_rank($rid, $time, $type);
|
||||
return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user