From a9cc4c392207b2d836cd985b71cc177d5cf3b090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Fri, 14 Nov 2025 17:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E5=86=85=E7=82=B9=E6=AD=8C?= =?UTF-8?q?=20=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/SingerSong.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/api/model/SingerSong.php b/application/api/model/SingerSong.php index c84aaba..a1e4c24 100644 --- a/application/api/model/SingerSong.php +++ b/application/api/model/SingerSong.php @@ -242,6 +242,7 @@ class SingerSong extends Model 'room_id' => $room_id ]; $res = [ + 'already' => db::name('vs_song_log')->where($where)->where(['status' => ['in','1,0']])->count(), 'total' => db::name('vs_song_log')->where($where)->count(), 'today' => db::name('vs_song_log')->where($where)->where('createtime', 'between time', [strtotime(date('Y-m-d')), time()])->count(), 'yesterday' => db::name('vs_song_log')->where($where)->where('createtime', 'between time', [strtotime(date('Y-m-d', strtotime("-1 day"))), strtotime(date('Y-m-d'))])->count(),