作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

XIAOPAN

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