/** * 统计素材数量. * * @return array */ public function getSummary() { return ['image' => $this->materialRepository->countImage($this->account()->id), 'video' => $this->materialRepository->countVoide($this->account()->id), 'voice' => $this->materialRepository->countVoice($this->account()->id), 'article' => $this->materialRepository->countArticle($this->account()->id)]; }