首页音量旋钮,不允许用户主动调节音量
This commit is contained in:
@@ -523,7 +523,7 @@ export function readBootSoundFromState(state: DeviceState | null | undefined): n
|
||||
// Mock data for demo/offline mode
|
||||
// ============================================================
|
||||
export const MOCK_DEVICE_STATE: DeviceState = {
|
||||
device: "Luxsin-X9",
|
||||
device: "Luxsin-B9",
|
||||
version: "1.2.3",
|
||||
mac: "AA:BB:CC:DD:EE:FF",
|
||||
language: 0,
|
||||
@@ -760,7 +760,7 @@ export async function fetchLuxsinAudioCurve(
|
||||
// Share Code API — shareCreate / shareList / shareQuery / shareAccept
|
||||
// ============================================================
|
||||
|
||||
const SHARE_DEVICE_MODELS = ["Luxsin-X9", "Luxsin-X8"] as const;
|
||||
const SHARE_DEVICE_MODELS = ["Luxsin-X9", "Luxsin-X8", "Luxsin-B9"] as const;
|
||||
|
||||
export type ShareDeviceModel = (typeof SHARE_DEVICE_MODELS)[number];
|
||||
|
||||
@@ -777,6 +777,7 @@ export function resolveShareDeviceModel(device: string): ShareDeviceModel | null
|
||||
const lower = trimmed.toLowerCase();
|
||||
if (lower.includes("x9")) return "Luxsin-X9";
|
||||
if (lower.includes("x8")) return "Luxsin-X8";
|
||||
if (lower.includes("b9")) return "Luxsin-B9";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user