core_applet_site_version_service = new CoreAppletSiteVersionService(); } /** * 获取列表 * @param array $where * @return array */ public function getPage(array $where = []) { return $this->core_applet_site_version_service->getPage($this->site_id, $where); } /** * 获取信息 * @param int $id * @return array */ public function getInfo(int $id) { return $this->core_applet_site_version_service->getInfo($this->site_id, $id); } /** * 查询最后一个下载或升级的版本 * @param string $type * @return mixed|string * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException */ public function getLastVersion(string $type){ return $this->core_applet_site_version_service->getLastVersion($this->site_id, $type); } /** * 查询可升级的版本 * @param string $type * @return null */ public function getUpgradeVersion(string $type){ return $this->core_applet_site_version_service->getUpgradeVersion($this->site_id, $type); } }