qlg.tsgz.moe/hyhproject/common/exception/WstHttpException.php
2019-09-06 23:53:10 +08:00

20 lines
411 B
PHP
Executable File

<?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'));
}
}
}