WechatNotice.php 635 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\controller;
  3. use ln\basic\BaseController;
  4. use ln\services\WechatService;
  5. use EasyWeChat\Core\Exceptions\InvalidArgumentException;
  6. use EasyWeChat\Server\BadRequestException;
  7. use think\Response;
  8. /**
  9. * Class WechatNotice
  10. * @package app\controller
  11. * @author zfy
  12. * @day 2020-04-26
  13. */
  14. class WechatNotice extends BaseController
  15. {
  16. /**
  17. * @return Response
  18. * @throws InvalidArgumentException
  19. * @throws BadRequestException
  20. * @author zfy
  21. * @day 2020-04-26
  22. */
  23. public function serve()
  24. {
  25. ob_clean();
  26. return WechatService::create()->serve($this->request);
  27. }
  28. }