完善开门接口

This commit is contained in:
Yutousama 2021-12-20 17:34:23 +08:00
parent e7719b6cfe
commit 59477d518a

View File

@ -39,6 +39,9 @@ public class AppController {
if ("open".equals(status)) { if ("open".equals(status)) {
return "0"; return "0";
} else if ("on".equals(status)) { } else if ("on".equals(status)) {
return "2";
}else if("over".equals(status)){
RedisTools.set("door","ready");
return "1"; return "1";
} }
return "-1"; return "-1";