/** * 获取内容后缀 */ public function getContentFormat() { if (!$this->contentFormat) { $this->contentFormat = MimeType::getSuffix($this->contentType); } return $this->contentFormat; }