浏览代码

gates new version

master
Robin Thoni 9 年前
父节点
当前提交
931aa88ead
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      gates.php

+ 1
- 2
gates.php 查看文件

@@ -20,8 +20,7 @@ $gates = array();
20 20
 while($gate = $select->fetch())
21 21
 	$gates[] = array("id" => intval($gate['id']), "name" => $gate['name'],
22 22
 		"number" => $gate['number'], "address" => $gate['address'],
23
-		"port" => intval($gate['port']), "lastSeen" =>
24
-		strtotime($gate['lastSeen']));
23
+		"lastSeen" => intval(time()));
25 24
 
26 25
 echo json_encode(array("timestamp" => time(), "gateTimeout" => $gateTimeout, "gates" => $gates));
27 26
 ?>

正在加载...
取消
保存