|
|
@ -226,6 +226,11 @@ export default { |
|
|
|
//针对门禁没有关按钮发两条命令->开&关 20201224 后端: 直接发两条 关的那条这里填5 然后你那边不用管返回 |
|
|
|
if(switchInfo.hardware_type === 'AccessControl'&&status == 0)_data['delay'] = '5'; |
|
|
|
|
|
|
|
// 20220507 门闸 GateControl 要是 hardware_mac_addr 不为空 device_name 替换成 hardware_mac_addr |
|
|
|
// 另外多做一步 传多一个 "hardware_id":id 给我 |
|
|
|
if(switchInfo.hardware_type === 'GateControl'&&!!switchInfo.hardware_mac_addr)_data['device'] = switchInfo.hardware_mac_addr; |
|
|
|
if(switchInfo.hardware_type === 'GateControl')_data['hardware_id'] = switchInfo.id; |
|
|
|
|
|
|
|
return _data; |
|
|
|
}, |
|
|
|
// 操作接口请求 |
|
|
@ -253,6 +258,7 @@ export default { |
|
|
|
let _cid = status === 1 ? enter_id : |
|
|
|
status === 0 ? leave_id : ''; |
|
|
|
return { |
|
|
|
// hardware_id: switchInfo.id, |
|
|
|
name: 'gate', |
|
|
|
value: { |
|
|
|
tcp: hardware_net_addr + '', |
|
|
|