修复路由器扫描问题

This commit is contained in:
Yutousama 2021-12-20 17:52:28 +08:00
parent 59477d518a
commit e0751972a3

View File

@ -39,7 +39,9 @@ public class MiRouter extends Model {
QQBotManager.getInstance().sendMessage(qq, "点击该删除设备:\n" + url);
}
}
private static boolean isRunTime = false;
@Override
public void onTime(String time) {
super.onTime(time);
@ -68,6 +70,7 @@ public class MiRouter extends Model {
builder.append(item.getString("oname"));
builder.append(" 欢迎回家!").append("\n");
builder.append("点击该链接开门:").append("\n");
builder.append("http://192.168.31.88:802/openDoor.html");
QQBotManager.getInstance().sendMessage(_device.getLong("qq"), builder.toString());
_device.put("online", true);
_device.put("name", item.getString("oname"));
@ -95,8 +98,8 @@ public class MiRouter extends Model {
}
}
RedisTools.set(redis_key, devs.toJSONString());
isRunTime=false;
}
isRunTime = false;
}
private String getOnLineTime(String online) {