From a97fd9067523e91c0cb66d79a34d2e41e1c1e64e Mon Sep 17 00:00:00 2001 From: weizong song Date: Wed, 1 Jan 2025 11:38:30 +0800 Subject: [PATCH] up --- app/Http/Controllers/Customer/PayCallbackController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Customer/PayCallbackController.php b/app/Http/Controllers/Customer/PayCallbackController.php index 38ccda6..fce7a4f 100644 --- a/app/Http/Controllers/Customer/PayCallbackController.php +++ b/app/Http/Controllers/Customer/PayCallbackController.php @@ -15,8 +15,8 @@ class PayCallbackController extends Controller $xml = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input"); Log::info($xml); $array = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true); - $order = (new Orders())->where("serial", $array["out_trade_no"])->first(); - $notify = new \NotifyPub($order->project_id); + $recharge = (new Recharge())->with("order")->where("serial", $array["out_trade_no"])->first(); + $notify = new \NotifyPub($recharge->order->project_id); Log::info($xml); //存储微信的回调 $notify->saveData($xml);