AuthException.php 268 B

1234567891011121314151617
  1. <?php
  2. namespace ln\exceptions;
  3. use think\exception\HttpResponseException;
  4. class AuthException extends HttpResponseException
  5. {
  6. public function __construct($message, $code = 40000)
  7. {
  8. parent::__construct(app('json')->make($code, $message));
  9. }
  10. }