defaultChartOptions()) { $this->chartOptions = $options; } $this->init(); } /** * 处理请求 * * @param Request $request * * @return mixed|void */ public function handle(Request $request) { $this->withContent(162); } /** * 卡片内容 * * @param string $contents 键值对 title=>number * * @return $this */ public function withContent(array $contents) { $string = ''; foreach ($contents as $title => $number) { $c = new Number($title); $c->withContent($number); // $string .= << //

{$content}

// //HTML; $string.= $c->render(); } return $this->content($string); } }