牟新芬 3 år sedan
förälder
incheckning
057d84429a
3 ändrade filer med 6 tillägg och 2 borttagningar
  1. 4 0
      app/Request.php
  2. 2 0
      app/api/route/order.php
  3. 0 2
      app/api/route/weixin.php

+ 4 - 0
app/Request.php

@@ -5,4 +5,8 @@ namespace app;
 class Request extends \think\Request
 {
 
+    /**
+     * @var mixed|null
+     */
+    private $user;
 }

+ 2 - 0
app/api/route/order.php

@@ -15,6 +15,8 @@ Route::group('order',function () {
     Route::rule('buyOrder','v1.order/buyOrder');
     //代发订单
     Route::rule('subOrder','v1.order/subOrder');
+    //微信支付
+    Route::rule('wxPay', 'v1.weixin/pay');
     //余额支付
     Route::rule('balancePay','v1.order/balancePay');
 

+ 0 - 2
app/api/route/weixin.php

@@ -13,8 +13,6 @@ use think\Response;
 Route::group('weixin',function () {
     //用户登录
     Route::rule('result', 'v1.weixin/result');
-    //微信支付
-    Route::rule('wxPay', 'v1.weixin/pay');
     //微信支付回调
     Route::rule('notify', 'v1.weixin/notify');