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