This commit is contained in:
mkm 2024-01-15 19:17:49 +08:00
parent 00e5e4ceb7
commit b4fa584367

View File

@ -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].'小时';
}
}