初始化代码-发现错误修改

This commit is contained in:
2025-08-08 14:45:40 +08:00
parent 48ee8e54cc
commit 41715e4883
53725 changed files with 810530 additions and 1 deletions

View 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']);
}
}