wesmiler před 3 měsíci
rodič
revize
5b83ff49e4
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6 1
      app/Services/PaymentService.php

+ 6 - 1
app/Services/PaymentService.php

@@ -563,7 +563,12 @@ class PaymentService extends BaseService
                     $productId = isset($orderInfo['product_id'])? $orderInfo['product_id'] : '';
                     $orderNo = isset($orderInfo['order_no'])? $orderInfo['order_no'] : '';
                     $account = isset($orderInfo['account'])? $orderInfo['account'] : '';
-                    $amount = isset($orderInfo['pay_money'])? $orderInfo['pay_money'] : 0;
+                    $total = isset($orderInfo['pay_money'])? $orderInfo['pay_money'] : 0;
+                    $amount = $total;
+                    if(env('PAY_DEBUG')){
+                        $amount = 50;
+                    }
+
                     $result = DyrPayService::make()->recharge($orderNo, $account, $productId, $amount);
                     $errno = isset($result['errno'])?$result['errno'] : -1;
                     $errmsg = isset($result['errmsg'])?$result['errmsg'] : '';