hrjy 2 år sedan
förälder
incheckning
a8390eb7d7
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      app/api/controller/user/UserRechargeController.php

+ 4 - 4
app/api/controller/user/UserRechargeController.php

@@ -107,8 +107,8 @@ class UserRechargeController
                 break;
         }
     }
-  
-  /**
+
+    /**
      * 支付宝充值
      *
      * @param Request $request
@@ -116,7 +116,7 @@ class UserRechargeController
      */
     public function ali(Request $request)
     {
-        list($price, $recharId, $type, $get_money_type, $re_type) = UtilService::postMore([['price', 0], ['rechar_id', 0], ['type', 0], ['get_money_type', 'now_money'], ['re_type', 1]], $request, true);
+        list($price, $recharId, $type) = UtilService::postMore([['price', 0], ['rechar_id', 0], ['type', 0]], $request, true);
         if (!$price || $price <= 0) return app('json')->fail('参数错误');
         $storeMinRecharge = sys_config('store_user_min_recharge');
         if ($price < $storeMinRecharge) return app('json')->fail('充值金额不能低于' . $storeMinRecharge);
@@ -131,7 +131,7 @@ class UserRechargeController
                         $paid_price = $data['give_money'] ?? 0;
                     }
                 }
-                $rechargeOrder = UserRecharge::addRecharge($re_type ,$request->uid(), $price, 'ali', $paid_price);
+                $rechargeOrder = UserRecharge::addRecharge($request->uid(), $price, 'ali', $paid_price);
                 if (!$rechargeOrder) return app('json')->fail('充值订单生成失败!');
                 try {
                     return app('json')->successful(UserRecharge::aliPay($rechargeOrder));