新建exception文件夹,新增文件Handle.php文件 <?php namespace App\service\exception; use Webman\Exception\ExceptionHandler; use Webman\Http\Request; use Webman\Http\Response; use Throwable; class Handler extends Except...
protected $is_export = false;//是否开启导出 protected $exportName = '';//导出excel名称 protected $exportField = '';//导出excel名称 public function create() { if(!$this->is_export) $this->error('未开启导出'); ...