new-admin-api/crmeb/exceptions/AuthException.php

18 lines
272 B
PHP

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