order.php 784 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\api\route;
  3. use app\api\middleware\AllowOriginMiddleware;
  4. use app\api\middleware\UserMiddleware;
  5. use think\facade\Route;
  6. /**
  7. * 订单接口
  8. */
  9. Route::group('order',function () {
  10. //产品信息
  11. Route::rule('getProductInfo', 'v1.order/getProductInfo');
  12. //买样订单
  13. Route::rule('buyOrder','v1.order/buyOrder');
  14. //代发订单
  15. Route::rule('subOrder','v1.order/subOrder');
  16. //微信支付
  17. Route::rule('wxPay', 'v1.weixin/pay');
  18. //余额支付
  19. Route::rule('balancePay','v1.order/balancePay');
  20. //订单列表
  21. Route::rule('getOrderList','v1.order/getOrderList');
  22. //取消订单
  23. Route::rule('cancelOrder','v1.order/cancelOrder');
  24. })->middleware([
  25. AllowOriginMiddleware::class,
  26. UserMiddleware::class
  27. ]);