修复路由器扫描问题
This commit is contained in:
parent
59477d518a
commit
e0751972a3
@ -39,7 +39,9 @@ public class MiRouter extends Model {
|
|||||||
QQBotManager.getInstance().sendMessage(qq, "点击该删除设备:\n" + url);
|
QQBotManager.getInstance().sendMessage(qq, "点击该删除设备:\n" + url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isRunTime = false;
|
private static boolean isRunTime = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTime(String time) {
|
public void onTime(String time) {
|
||||||
super.onTime(time);
|
super.onTime(time);
|
||||||
@ -68,6 +70,7 @@ public class MiRouter extends Model {
|
|||||||
builder.append(item.getString("oname"));
|
builder.append(item.getString("oname"));
|
||||||
builder.append(" 欢迎回家!").append("\n");
|
builder.append(" 欢迎回家!").append("\n");
|
||||||
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());
|
QQBotManager.getInstance().sendMessage(_device.getLong("qq"), builder.toString());
|
||||||
_device.put("online", true);
|
_device.put("online", true);
|
||||||
_device.put("name", item.getString("oname"));
|
_device.put("name", item.getString("oname"));
|
||||||
@ -95,8 +98,8 @@ public class MiRouter extends Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
RedisTools.set(redis_key, devs.toJSONString());
|
RedisTools.set(redis_key, devs.toJSONString());
|
||||||
isRunTime=false;
|
|
||||||
}
|
}
|
||||||
|
isRunTime = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getOnLineTime(String online) {
|
private String getOnLineTime(String online) {
|
||||||
|
Loading…
Reference in New Issue
Block a user