diff --git a/module/doc/model.php b/module/doc/model.php index d10cf76db8..eadca09274 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3774,4 +3774,17 @@ class docModel extends model if(!empty($items)) $this->loadModel('setting')->setItems("{$this->app->user->account}.common.doc", $items); } + + /** + * 获取文档块内容。 + * Get doc block content. + * + * @param int $blockID + * @access public + * @return object|bool + */ + public function getDocBlock(int $blockID): object|bool + { + return $this->dao->select('*')->from(TABLE_DOCBLOCK)->where('id')->eq($blockID)->fetch(); + } }