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,