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" => "生成支付请求失败"