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

添加时间信息

... ... @@ -210,6 +210,7 @@ class UsersController extends HomeBaseController{
$price=new OrderController();
$order['price']=$price->getPrice($users_id,$order['start_time'],$order['end_time']);
$time_info=$this->getTimeInfo($order['start_time'],$order['end_time']);
dump($time_info);
array_merge($order,$time_info);
$this->apiResponse(200,'success',$order);
}
... ... @@ -379,6 +380,6 @@ class UsersController extends HomeBaseController{
$time=$end-$start;
$return['hour']=floor($time/3600);
$return['min']=floor(($time-$return['hour']*3600)/60);
return $return;
return $return;
}
}
\ No newline at end of file
... ...