zzwy2/app/controller/manager/Error.php

34 lines
655 B
PHP
Raw Permalink Normal View History

2022-10-08 09:31:39 +00:00
<?php
namespace app\controller\manager;
class Error
{
protected $data = [];
public function __call($method, $args)
{
$this->data['seoTitle'] = '404';
return view('error/404')->assign($this->data);
}
public function jump()
{
$param = request()->param();
return view()->assign($param);
}
// 404
public function notFind()
{
$this->data['seoTitle'] = '404';
return view('error/404')->assign($this->data);
}
// 500
public function serviceFail()
{
$this->data['seoTitle'] = '500';
return view('error/500')->assign($this->data);
}
}