From b4fa584367c38ac2bbad1d351328ec20ed222b6b Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 15 Jan 2024 19:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Model/TaskStages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/common/Model/TaskStages.php b/application/common/Model/TaskStages.php index 4da9247..f093d6c 100755 --- a/application/common/Model/TaskStages.php +++ b/application/common/Model/TaskStages.php @@ -136,7 +136,8 @@ class TaskStages extends CommonModel $timeDifference = abs(time() - $endTime); // 计算天数 $days = bcdiv($timeDifference,86400,2); - $task['timeout']=$days.'天'; + $times= explode('.',$days); + $task['timeout']=$times[0].'天'.$times[1]??$times[1].'小时'; } }