From 9eb947b81b0455403c9df86aae9da631dd557114 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Sun, 10 Mar 2024 13:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E7=A9=BA=E9=97=B4?= =?UTF-8?q?=E8=B6=85=E9=99=90=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/home/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/home/index.php b/views/home/index.php index 76a7cb0..1e7db2f 100644 --- a/views/home/index.php +++ b/views/home/index.php @@ -35,7 +35,7 @@ $is_unlimited = ($storageLimit === -1); //检查是否为无限制容量 $usedPercent = $is_unlimited ? 0 : round($usedSpace / ($storageLimit * 1024 * 1024) * 100); //网盘已用百分比 $vaultUsedPercent = $is_unlimited ? 0 : round($vaultUsedSpace / ($storageLimit * 1024 * 1024) * 100); //保险箱已用百分比 $totalUsedPercent = min(($usedPercent + $vaultUsedPercent), 100); //总已用百分比 - +$freeSpace = $is_unlimited ? 'unlimited' : ($storageLimit * 1024 * 1024 - $usedSpace - $vaultUsedSpace); //剩余空间 FontAwesomeAsset::register($this); JqueryAsset::register($this); ViewerJsAsset::register($this); @@ -67,7 +67,7 @@ $this->registerCssFile('@web/css/home_style.css'); data-bs-toggle="dropdown" aria-expanded="false"> 上传文件 -