24 lines
665 B
PHP
24 lines
665 B
PHP
|
|
<?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']);
|
|||
|
|
}
|
|||
|
|
}
|