{
throw new \think\Exception('异常消息', 10006);
}
unhandle \think\Exception
<?php
use app\common\exception\ApiException;
use app\Request;
// 容器Provider定义文件
return [
'think\Request' => Request::class,
'think\exception\Handle' => ApiException::class,
];
完全不起作用
最佳答案
