更新
This commit is contained in:
parent
06696cfb0b
commit
66e764a2e9
@ -605,12 +605,13 @@ class Project extends BasicApi
|
||||
$endTime = strtotime($find['end_date']);
|
||||
if ($endTime > $createTime) {
|
||||
$timeDifference = abs($endTime - $createTime);
|
||||
$days = bcdiv($timeDifference,60,2);
|
||||
if($days>1){
|
||||
$data[$k]['stop_time']=$days.'分钟';
|
||||
if($timeDifference>60){
|
||||
$days = bcdiv($timeDifference,60,2);
|
||||
$data[$k]['stop_time']=$days.'分钟';
|
||||
}else{
|
||||
$data[$k]['stop_time']=$days.'秒';
|
||||
$data[$k]['stop_time']=$timeDifference.'秒';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user