修复:新用户进入酒卡明细时报错 导致数据不渲染

This commit is contained in:
wuhui_zzw 2024-04-03 16:46:42 +08:00
parent f249e6d434
commit 775dc17169
1 changed files with 3 additions and 3 deletions

View File

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