diff --git a/module/zahost/model.php b/module/zahost/model.php index 3b01e44a1c..be1eccfa71 100644 --- a/module/zahost/model.php +++ b/module/zahost/model.php @@ -126,13 +126,14 @@ class zahostModel extends model } /** + * 根据编号获取镜像。 * Get image by ID. * - * @param int $imageID + * @param int $imageID * @access public - * @return object + * @return false|object */ - public function getImageByID($imageID) + public function getImageByID(int $imageID):false|object { return $this->dao->select('*')->from(TABLE_IMAGE)->where('id')->eq($imageID)->fetch(); }