修复vip历史预约

This commit is contained in:
2025-11-19 18:49:32 +08:00
parent 7d81c77fac
commit 96ab5288b8
+2 -2
View File
@@ -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;
// 系统现在只返回实际数据库中的预约记录数据