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