签约 流拍处理

This commit is contained in:
2026-01-19 14:38:51 +08:00
parent 49e620d9aa
commit d34b947a91
4 changed files with 73 additions and 7 deletions

View File

@@ -150,6 +150,39 @@ class GiveGiftBases extends Model
}
/**
* 房间送礼统计总数
*/
public function getRoomStatistics_total($fromId, $startTime, $endTime)
{
if (!$fromId) {
$this->error('房间ID不能为空');
}
$where = ['from_id' => $fromId];
$options = [
'start_time' => $startTime,
'end_time' => $endTime,
];
// 统计房间总数据
$totalStats = $this->giftModel->getGiftStatistics($where, $options);
$result = [
'room_id' => $fromId,
'time_range' => [
'start_time' => $startTime,
'end_time' => $endTime,
'start_date' => date('Y-m-d H:i:s', $startTime),
'end_date' => date('Y-m-d H:i:s', $endTime),
],
'total_stats' => $totalStats,
];
// $this->success('获取成功', $result);
return $result;
}
/**
* 用户送礼统计
*/