Skip to content

Commit

Permalink
Update device_model.php
Browse files Browse the repository at this point in the history
Fix device last updated not working on sql engine.
  • Loading branch information
chaveiro committed Sep 15, 2021
1 parent 4769bdb commit bc631aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
}
}
}
Expand Down

0 comments on commit bc631aa

Please sign in to comment.