|
@@ -176,13 +176,13 @@ const handleControl = async (command, actionName, isBigInv) => {
|
|
|
// }
|
|
// }
|
|
|
plugin.gateConfig.controlGate(command);
|
|
plugin.gateConfig.controlGate(command);
|
|
|
if(command == 'OPEN' || command == 'SHOTOPEN'){
|
|
if(command == 'OPEN' || command == 'SHOTOPEN'){
|
|
|
- plugin.gateConfig.controlLight(JSON.stringify(LIGHT_OPEN));
|
|
|
|
|
|
|
+ plugin.gateConfig.controlLight(JSON.stringify(LIGHT_OPEN));
|
|
|
}else if(command == 'CLOSE'){
|
|
}else if(command == 'CLOSE'){
|
|
|
- plugin.gateConfig.controlLight(JSON.stringify(LIGHT_CLOSE));
|
|
|
|
|
|
|
+ plugin.gateConfig.controlLight(JSON.stringify(LIGHT_CLOSE));
|
|
|
}else if(command == 'REBOOT'){
|
|
}else if(command == 'REBOOT'){
|
|
|
- plugin.gateConfig.controlLight(JSON.stringify(LIGHT_RESTART));
|
|
|
|
|
|
|
+ plugin.gateConfig.controlLight(JSON.stringify(LIGHT_RESTART));
|
|
|
}else if(command == 'ALARM'){
|
|
}else if(command == 'ALARM'){
|
|
|
- plugin.gateConfig.controlLight(JSON.stringify(LIGHT_ALARM));
|
|
|
|
|
|
|
+ plugin.gateConfig.controlLight(JSON.stringify(LIGHT_ALARM));
|
|
|
}
|
|
}
|
|
|
showNotify({ type: 'success', message: `${actionName}操作成功`, duration: 2000 });
|
|
showNotify({ type: 'success', message: `${actionName}操作成功`, duration: 2000 });
|
|
|
// if (res.errorCode === 0) {
|
|
// if (res.errorCode === 0) {
|