ott.php 494 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\api\route;
  3. use app\api\middleware\AllowOriginMiddleware;
  4. use app\api\middleware\SeretKeyMiddleware;
  5. use think\facade\Config;
  6. use think\facade\Route;
  7. use think\Response;
  8. /**
  9. * 无需授权的接口
  10. */
  11. Route::group('ott',function () {
  12. //任务
  13. Route::rule('alipay', 'v1.ott/alipay');
  14. Route::rule('alipayNotifyUrl','v1.ott/alipayNotifyUrl');
  15. Route::rule('alipayReturnUrl','v1.ott/alipayReturnUrl');
  16. })->middleware([
  17. AllowOriginMiddleware::class
  18. ]);