那是因为您的查询中有错误。
MySQli->query()错误时将返回false。将其更改为:
$result = $this->database->query($query);if (!$result) { throw new Exception("Database Error [{$this->database->errno}] {$this->database->error}");}如果有错误,那应该抛出异常…

那是因为您的查询中有错误。
MySQli->query()错误时将返回false。将其更改为:
$result = $this->database->query($query);if (!$result) { throw new Exception("Database Error [{$this->database->errno}] {$this->database->error}");}如果有错误,那应该抛出异常…