From e6120251e8035c6a943678a44c20e8a2d65cc044 Mon Sep 17 00:00:00 2001 From: weizong song Date: Wed, 15 Oct 2025 02:12:52 +0800 Subject: [PATCH] up --- app/Libs/AlipayF2F.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Libs/AlipayF2F.class.php b/app/Libs/AlipayF2F.class.php index 3d59081..6bcefd0 100644 --- a/app/Libs/AlipayF2F.class.php +++ b/app/Libs/AlipayF2F.class.php @@ -97,10 +97,7 @@ class AlipayF2F public function refund(Refund $refund) { try { - $relatedRecharge = $refund->relatedRecharge; - $merchantId = $relatedRecharge->merchant_id; - $alipayAccount = AlipayAccount::where('appid', $merchantId)->withTrashed()->first(); - + $alipayAccount = AlipayAccount::where('appid', $refund->merchant_id)->withTrashed()->first(); $config = $this->getOptions($alipayAccount); $result = Factory::setOptions($config)::payment()