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);