作者 sgj
1 个管道 的构建 通过 耗费 0 秒

添加时间信息

@@ -210,6 +210,7 @@ class UsersController extends HomeBaseController{ @@ -210,6 +210,7 @@ class UsersController extends HomeBaseController{
210 $price=new OrderController(); 210 $price=new OrderController();
211 $order['price']=$price->getPrice($users_id,$order['start_time'],$order['end_time']); 211 $order['price']=$price->getPrice($users_id,$order['start_time'],$order['end_time']);
212 $time_info=$this->getTimeInfo($order['start_time'],$order['end_time']); 212 $time_info=$this->getTimeInfo($order['start_time'],$order['end_time']);
  213 + dump($time_info);
213 array_merge($order,$time_info); 214 array_merge($order,$time_info);
214 $this->apiResponse(200,'success',$order); 215 $this->apiResponse(200,'success',$order);
215 } 216 }
@@ -379,6 +380,6 @@ class UsersController extends HomeBaseController{ @@ -379,6 +380,6 @@ class UsersController extends HomeBaseController{
379 $time=$end-$start; 380 $time=$end-$start;
380 $return['hour']=floor($time/3600); 381 $return['hour']=floor($time/3600);
381 $return['min']=floor(($time-$return['hour']*3600)/60); 382 $return['min']=floor(($time-$return['hour']*3600)/60);
382 - return $return; 383 + return $return;
383 } 384 }
384 } 385 }