WeappServeService.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\service\api\weapp;
  12. use app\service\core\weapp\CoreWeappServeService;
  13. use core\base\BaseApiService;
  14. use EasyWeChat\Kernel\Exceptions\BadRequestException;
  15. use EasyWeChat\Kernel\Exceptions\InvalidArgumentException;
  16. use ReflectionException;
  17. use Symfony\Component\HttpFoundation\Response;
  18. use Throwable;
  19. /**
  20. * 微信配置模型
  21. * Class WechatConfigService
  22. * @package app\service\core\wechat
  23. */
  24. class WeappServeService extends BaseApiService
  25. {
  26. /**
  27. * 消息与时间推送
  28. * @return Response
  29. * @throws BadRequestException
  30. * @throws InvalidArgumentException
  31. * @throws ReflectionException
  32. * @throws Throwable
  33. */
  34. public function serve(){
  35. return (new CoreWeappServeService())->serve($this->site_id);
  36. }
  37. }