完善开门接口
This commit is contained in:
parent
e7719b6cfe
commit
59477d518a
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user