34 lines
655 B
PHP
34 lines
655 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|