WeChatException.php 669 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Exceptions;
  3. use Exception;
  4. use Throwable;
  5. /**
  6. * 微信监听地址的异常处理
  7. * Class WeChatException
  8. * @package App\Exceptions
  9. */
  10. class WeChatException extends Exception
  11. {
  12. //
  13. public function __construct($message = "", $code = 0, Throwable $previous = null)
  14. {
  15. parent::__construct($message, $code, $previous);
  16. }
  17. public function report(Exception $exception)
  18. {
  19. \Log::debug($exception);
  20. }
  21. /**
  22. * 将异常渲染到 HTTP 响应中。
  23. *
  24. * @param \Illuminate\Http\Request
  25. * @return void
  26. */
  27. public function render($request)
  28. {
  29. return "Success";
  30. }
  31. }