pay.php 895 B

12345678910111213141516171819202122232425
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: TABLE ME
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-05 09:21
  10. // +----------------------------------------------------------------------
  11. use app\api\middleware\AllowOriginMiddleware;
  12. use app\api\middleware\SeretKeyMiddleware;
  13. use app\api\middleware\UserMiddleware;
  14. use think\facade\Route;
  15. Route::group('pay', function () {
  16. //微信异步返回
  17. Route::rule('wxpayNotify', 'Pay/wxpayNotify');
  18. })->middleware([
  19. AllowOriginMiddleware::class,
  20. SeretKeyMiddleware::class,
  21. // UserMiddleware::class,
  22. ]);