ApiChannel.php 994 B

12345678910111213141516171819202122232425262728293031323334
  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\api\middleware;
  12. use app\Request;
  13. use Closure;
  14. use Exception;
  15. /**
  16. * api渠道处理, 各种渠道的请求, 会在这儿将渠道的公共数据处理好
  17. */
  18. class ApiChannel
  19. {
  20. /**
  21. * @param Request $request
  22. * @param Closure $next
  23. * @return mixed
  24. * @throws Exception
  25. */
  26. public function handle(Request $request, Closure $next)
  27. {
  28. return $next($request);
  29. }
  30. }