From 4db022d4dca80a776bc85cfde15a204d789d420a Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 26 Dec 2023 08:30:55 +0000 Subject: [PATCH] * Refactor getImageByID function. --- module/zahost/model.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); }