wesmiler 3 月之前
父節點
當前提交
5b83ff49e4
共有 1 個文件被更改,包括 6 次插入1 次删除
  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'] : '';