From 6a3298bbf055681c66d52c9f06d8c8332c9e3eca Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sat, 17 Jun 2023 20:09:24 +0800 Subject: [PATCH] Yh --- app/Controller/Recharge/RechargeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/Recharge/RechargeController.php b/app/Controller/Recharge/RechargeController.php index 63dc0e1..366292b 100644 --- a/app/Controller/Recharge/RechargeController.php +++ b/app/Controller/Recharge/RechargeController.php @@ -261,7 +261,7 @@ class RechargeController extends AbstractController $records = []; foreach ($orders as $order) { - $bankCard = $bankCards[$order->protocol] ?? null; + $bankCard = $order->protocol ? ($bankCards[$order->protocol] ?? null) : null; $records[] = [ 'out_order_no' => $order->out_order_no, 'payed_at' => $order->payed_at,