作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -110,10 +110,10 @@ class OrderController extends HomeBaseController{ @@ -110,10 +110,10 @@ class OrderController extends HomeBaseController{
110 $date=floor(($end_time-$start_time)/86400); 110 $date=floor(($end_time-$start_time)/86400);
111 //去余数 111 //去余数
112 $yu=($end_time-$start_time)%86400; 112 $yu=($end_time-$start_time)%86400;
113 - dump($yu); 113 +
114 $new_start_time=$end_time-$yu;//时间戳 114 $new_start_time=$end_time-$yu;//时间戳
115 $new_end_time= $end_time;//时间戳 115 $new_end_time= $end_time;//时间戳
116 - 116 + dump($new_start_time);
117 $hours_start_time=date('H',$new_start_time); 117 $hours_start_time=date('H',$new_start_time);
118 $hours_end_time=date('H',$new_end_time); 118 $hours_end_time=date('H',$new_end_time);
119 119