You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
20
hyhproject/common/exception/WstHttpException.php
Executable file
20
hyhproject/common/exception/WstHttpException.php
Executable file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace wstmart\common\exception;
|
||||
/**
|
||||
* ============================================================================
|
||||
*/
|
||||
use think\exception\Handle;
|
||||
|
||||
class WstHttpException extends Handle
|
||||
{
|
||||
|
||||
public function render(\Exception $e)
|
||||
{
|
||||
if(config('app_debug')){
|
||||
return parent::render($e);
|
||||
}else{
|
||||
header("Location:".url('home/error/index'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user