实现酒店上下文单酒店收口

This commit is contained in:
andy committed 2026-07-10 15:31:51 +08:00
1 parent 7492c21350
commit d69f3975ef
52 files changed
+1183 -188

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
const configuredReservationHotelId = import.meta.env.VITE_RESERVATION_HOTEL_ID?.trim()
export const reservationHotelId = configuredReservationHotelId || 'HOTEL-TEST'
export const reservationHotelId = configuredReservationHotelId || null
let reservationHotelIdProvider: (() => string | null | undefined) | null = null
@@ -8,7 +8,7 @@ export function setReservationHotelIdProvider(provider: (() => string | null | u
reservationHotelIdProvider = provider
}
export function getReservationHotelId(): string {
export function getReservationHotelId(): string | null {
const providedHotelId = reservationHotelIdProvider?.()?.trim()
return providedHotelId || reservationHotelId
}