修复vip历史预约
This commit is contained in:
@@ -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;
|
||||
|
||||
// 系统现在只返回实际数据库中的预约记录数据
|
||||
Reference in New Issue
Block a user