refactor(types): 将自动门点类型标识从99统一更新为101以匹配新的设备类型规范
This commit is contained in:
parent
2cd9112f55
commit
3794e6477b
@ -334,7 +334,7 @@ const monitorScene = async () => {
|
||||
const data = JSON.parse(e.data || '{}');
|
||||
|
||||
// 判断数据类型:type=99为自动门点,其他为机器人
|
||||
if (data.type === 99) {
|
||||
if (data.type === 101) {
|
||||
// 自动门点数据处理
|
||||
autoDoorSimulationService.handleWebSocketData(data as AutoDoorWebSocketData);
|
||||
} else {
|
||||
@ -396,7 +396,7 @@ const monitorScene = async () => {
|
||||
id: mockDeviceId,
|
||||
label: mockDeviceId,
|
||||
brand: null,
|
||||
type: 99,
|
||||
type: 101,
|
||||
ip: null,
|
||||
battery: 100,
|
||||
isConnected: mockIsConnected,
|
||||
|
||||
@ -55,7 +55,7 @@ interface AutoDoorStatusData {
|
||||
|
||||
brand: null;
|
||||
|
||||
type: 99; // 自动门点类型标识
|
||||
type: 101; // 自动门点类型标识
|
||||
|
||||
ip: null;
|
||||
|
||||
@ -107,7 +107,7 @@ export interface AutoDoorWebSocketData {
|
||||
|
||||
brand: null;
|
||||
|
||||
type: 99; // 自动门点类型标识
|
||||
type: 101; // 自动门点类型标识
|
||||
|
||||
ip: null;
|
||||
|
||||
@ -629,7 +629,7 @@ export class AutoDoorService {
|
||||
|
||||
brand: null,
|
||||
|
||||
type: 99,
|
||||
type: 101,
|
||||
|
||||
ip: null,
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user