20 lines
411 B
PHP
Executable File
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'));
|
|
}
|
|
}
|
|
|
|
} |