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

XIAOPAN

@@ -303,7 +303,7 @@ class UsersController extends HomeBaseController{ @@ -303,7 +303,7 @@ class UsersController extends HomeBaseController{
303 ->field('o.order_no,o.users_id,o.start_time,e.serial_number,e.hospital') 303 ->field('o.order_no,o.users_id,o.start_time,e.serial_number,e.hospital')
304 ->where(['o.users_id'=>$users_id,'o.state'=>1,'o.type'=>1,'e.is_delete'=>0]) 304 ->where(['o.users_id'=>$users_id,'o.state'=>1,'o.type'=>1,'e.is_delete'=>0])
305 ->find(); 305 ->find();
306 - if ($order){ 306 + if (empty($order)){
307 $this->apiResponse(200,'没有未完成订单'); 307 $this->apiResponse(200,'没有未完成订单');
308 } 308 }
309 $order['end_time']=time(); 309 $order['end_time']=time();