refactor(types): 将自动门点类型标识从99统一更新为101以匹配新的设备类型规范

This commit is contained in:
xudan 2025-12-04 17:39:57 +08:00
parent 2cd9112f55
commit 3794e6477b
2 changed files with 5 additions and 5 deletions

View File

@ -334,7 +334,7 @@ const monitorScene = async () => {
const data = JSON.parse(e.data || '{}'); const data = JSON.parse(e.data || '{}');
// type=99 // type=99
if (data.type === 99) { if (data.type === 101) {
// //
autoDoorSimulationService.handleWebSocketData(data as AutoDoorWebSocketData); autoDoorSimulationService.handleWebSocketData(data as AutoDoorWebSocketData);
} else { } else {
@ -396,7 +396,7 @@ const monitorScene = async () => {
id: mockDeviceId, id: mockDeviceId,
label: mockDeviceId, label: mockDeviceId,
brand: null, brand: null,
type: 99, type: 101,
ip: null, ip: null,
battery: 100, battery: 100,
isConnected: mockIsConnected, isConnected: mockIsConnected,

View File

@ -55,7 +55,7 @@ interface AutoDoorStatusData {
brand: null; brand: null;
type: 99; // 自动门点类型标识 type: 101; // 自动门点类型标识
ip: null; ip: null;
@ -107,7 +107,7 @@ export interface AutoDoorWebSocketData {
brand: null; brand: null;
type: 99; // 自动门点类型标识 type: 101; // 自动门点类型标识
ip: null; ip: null;
@ -629,7 +629,7 @@ export class AutoDoorService {
brand: null, brand: null,
type: 99, type: 101,
ip: null, ip: null,