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 || '{}');
|
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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user