From 96ab5288b8094da6fe0e7728a39f109a1b174fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B1=95=E9=B9=8F?= Date: Wed, 19 Nov 2025 18:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dvip=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E9=A2=84=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get_vip_last_booking.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_vip_last_booking.php b/get_vip_last_booking.php index de0d8cb..ae07ebb 100644 --- a/get_vip_last_booking.php +++ b/get_vip_last_booking.php @@ -35,7 +35,7 @@ try { b.appointment_time DESC LIMIT 1"; - $stmt = $conn->prepare($sql); + $stmt = $pdo->prepare($sql); $stmt->bindParam(':vipId', $vipId, PDO::PARAM_INT); $stmt->execute(); $lastBooking = $stmt->fetch(PDO::FETCH_ASSOC); @@ -64,6 +64,6 @@ $response = [ echo json_encode($response); // 关闭数据库连接 -$conn = null; +$pdo = null; // 系统现在只返回实际数据库中的预约记录数据 \ No newline at end of file