diff --git a/app/Http/Controllers/Api/SharePayController.php b/app/Http/Controllers/Api/SharePayController.php index 10aa215..246a3ce 100644 --- a/app/Http/Controllers/Api/SharePayController.php +++ b/app/Http/Controllers/Api/SharePayController.php @@ -53,7 +53,7 @@ class SharePayController extends Controller if ($order->status == Status::PAY_EARNEST) { $price = $order->price - $order->paid_money; } else { - $price = $this->calc($order->price, $order->num, $order->pay_type, $order->agent_product); + $price = $this->calc($order->price, $order->num, $order->pay_type, $order->agentProduct); } $config = config('wechat.payment.default');