From 4c6f0eaa35d37b3a409932809e14be6e7effb4a7 Mon Sep 17 00:00:00 2001 From: weizong song Date: Mon, 30 Dec 2024 11:52:17 +0800 Subject: [PATCH] up --- app/Http/Controllers/Customer/OrdersController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Customer/OrdersController.php b/app/Http/Controllers/Customer/OrdersController.php index 0af056e..8d2580a 100644 --- a/app/Http/Controllers/Customer/OrdersController.php +++ b/app/Http/Controllers/Customer/OrdersController.php @@ -655,6 +655,7 @@ class OrdersController extends CommonController $unifiedOrder->setParameter("notify_url", get_http_type() . $_SERVER["HTTP_HOST"] . "/customer/pay-callback");//通知地址 $unifiedOrder->setParameter("trade_type", "JSAPI");//交易类型 } catch (\Exception $exception) { + Log::channel("daily_customer_order_request")->info("order_id:".request()->order_id.":".$exception->getMessage()); return response()->json([ "errorcode" => $exception->getCode(), "errormsg" => $exception->getMessage() @@ -674,6 +675,7 @@ class OrdersController extends CommonController //生成预支付ID $prepay_id = $unifiedOrder->getPrepayId(); if (!$prepay_id) { + Log::channel("daily_customer_order_request")->info("null_prepay_id:".request()->order_id); return response()->json([ "errorcode" => "60000", "errormsg" => "生成支付请求失败"