From a371fa5210c6f914f01796f9b3162170cf9498c3 Mon Sep 17 00:00:00 2001 From: weizong song Date: Wed, 1 Jan 2025 11:21:57 +0800 Subject: [PATCH] up --- app/Http/Controllers/Customer/OrdersController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Customer/OrdersController.php b/app/Http/Controllers/Customer/OrdersController.php index 580c7cf..ab65236 100644 --- a/app/Http/Controllers/Customer/OrdersController.php +++ b/app/Http/Controllers/Customer/OrdersController.php @@ -627,10 +627,11 @@ class OrdersController extends CommonController public function recharge() { Log::channel("daily_customer_order_request")->info($this->customer->openid); - Log::channel("daily_customer_order_request")->info(request()->all()); + $order = (new Orders())->with("project")->find(request()->order_id); + $openid = $this->customer->openid; - $unifiedOrder = new \UnifiedOrderPub(); - $jsApi = new \JsApiPub(); + $unifiedOrder = new \UnifiedOrderPub($order->project_id); + $jsApi = new \JsApiPub($order->project_id); $recharge = (new Recharge())->create([ "customer_id" => $this->customer->id, "money" => request()->money,