正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论