src/Leevel/Mail/Mail.php
protected function getViewData(string $file, array $data): string
    {
        return $this->view->
        clearAssign()->

        assign('mail', $this)->

        assign($data)->

        display($file, [], null);
    }
protected function getViewData(string $file, array $data): string
    {
        return $this->view->
        clearAssign()->

        assign('mail', $this)->

        assign($data)->

        display($file, [], null);
    }
试图渲染数据.

@param string $file
@param array  $data

@return string