From 775dc1716928f61aa1160da606414e0bed83163a Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Wed, 3 Apr 2024 16:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=96=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=BF=9B=E5=85=A5=E9=85=92=E5=8D=A1=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=20=E5=AF=BC=E8=87=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=8D=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/user/Exchange.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/api/user/Exchange.php b/app/controller/api/user/Exchange.php index c4be946..af7ed92 100644 --- a/app/controller/api/user/Exchange.php +++ b/app/controller/api/user/Exchange.php @@ -429,11 +429,11 @@ class Exchange extends BaseController{ ->toArray(); $statisticsList = [ - ['title' => '总额度','value' => $statistics['total_quota']], - ['title' => '已使用额度','value' => $statistics['use_quota']], + ['title' => '总额度','value' => $statistics['total_quota'] ?? 0], + ['title' => '已使用额度','value' => $statistics['use_quota'] ?? 0], // ['title' => '剩余额度','value' => $statistics['surplus_quota']], // ['title' => '冻结额度','value' => $statistics['freeze_quota']], - ['title' => '可用额度','value' => $statistics['available']], + ['title' => '可用额度','value' => $statistics['available'] ?? 0], ]; return app('json')->success($statisticsList);