|
|
@@ -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'] : '';
|