// +---------------------------------------------------------------------- namespace crmeb\exceptions; use think\exception\HttpResponseException; class AuthException extends HttpResponseException { public function __construct($message, $code = 40000) { parent::__construct(app('json')->make($code, $message)); } }