房间流水统计

This commit is contained in:
2026-01-09 15:01:15 +08:00
parent 843b16f5cd
commit 9c7dbe9b4d

View File

@@ -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]];