From 9c7dbe9b4d8593eb5d81636dfa82b42511ed9123 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, 9 Jan 2026 15:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E6=B5=81=E6=B0=B4=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/model/Room.php b/application/api/model/Room.php index 638c7883..17075bdc 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -561,7 +561,7 @@ class Room extends Model }else{ $total_earning = db::name('user_earnings_log') ->where(['user_id' => $userId,'room_id' => $room_id,'change_type' => 19]) - ->where('createtime', 'between', [strtotime($stime), $end_time]) + ->where(['createtime' => ['between', [strtotime($stime), $end_time]]]) ->sum('earnings'); } return ['code' => 1, 'msg' => '成功', 'data' => ['total_amount' => $total_amount, 'total_earning' => $total_earning,'list' => $list_data_array]];