WechatNotice.php 717 B

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