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,