diff --git a/device_model.php b/device_model.php index a2bf7b6..e579453 100644 --- a/device_model.php +++ b/device_model.php @@ -77,7 +77,7 @@ public function devicekey_session($devicekey) { $this->redis->hMset("device:lastvalue:$id", array('time' => $time)); } else { //$time = date("Y-n-j H:i:s", $time); - $this->mysqli->query("UPDATE device SET time='$time' WHERE id = '$id"); + $this->mysqli->query("UPDATE device SET time='$time' WHERE id = '$id'"); } } }