...
|
...
|
@@ -73,6 +73,7 @@ class OrderController extends HomeBaseController{ |
|
|
// */
|
|
|
public function order($users_id,$name){
|
|
|
$order= Db::name('order')->where(['users_id'=>$users_id,'state'=>1])->find();
|
|
|
$this->apiResponse(200,'success',$order);
|
|
|
$end_time=time();
|
|
|
$price=$this->getPrice($users_id,$order['start_time'],$end_time);
|
|
|
$time=ceil(($end_time-$order['start_time'])/3600);
|
...
|
...
|
|