From 5f70dc3065ca0c404cdc124d977bf8e54d4a6d72 Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Tue, 23 Jan 2024 09:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BB=BB=E5=8A=A1=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=BA=A6=EF=BC=8C=E5=BD=93=E6=B2=A1=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E8=B0=83=E6=95=B4=E4=B8=BA0%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/project/controller/Index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/project/controller/Index.php b/app/project/controller/Index.php index 206bfe6..138c66f 100644 --- a/app/project/controller/Index.php +++ b/app/project/controller/Index.php @@ -61,10 +61,7 @@ class Index extends BaseController if ($item->tasks_total > 0) { $item->tasks_pensent = round($item->tasks_finish / $item->tasks_total * 100, 2) . "%"; } else { - $item->tasks_pensent = "100%"; - if($item->status<2){ - $item->tasks_pensent = "0%"; - } + $item->tasks_pensent = "0%"; } $step = Db::name('Step')->where(['action_id' => $item->id,'sort'=>$item->step_sort,'type'=>2,'delete_time'=>0])->find();