|
@@ -726,8 +726,8 @@ class Collection extends Backend
|
|
|
$this->error('未找到记录');
|
|
|
}
|
|
|
// 计算差值
|
|
|
- $time = strtotime(date('Y-m-d H:i:s', strtotime('+10 minute',$row->countdown_time)));
|
|
|
- $diff = $time-time();
|
|
|
+ // $time = strtotime(date('Y-m-d H:i:s', strtotime('+10 minute',$row->countdown_time)));
|
|
|
+ $diff = $row->countdown_time-time();
|
|
|
// 将差值转换为秒
|
|
|
$seconds = $diff;
|
|
|
$minutes = floor($seconds / 60);
|