Pārlūkot izejas kodu

代理-二维码

whitefang 1 gadu atpakaļ
vecāks
revīzija
95c249b2fd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/api/logic/PropertyOrderLogic.php

+ 1 - 1
app/api/logic/PropertyOrderLogic.php

@@ -46,7 +46,7 @@ class PropertyOrderLogic extends BaseLogic
             }
             }
             $order = PropertyOrder::where(['property_user_id'=>$propertyUserId,'property_head_id'=>$params['property_head_id'],'order_status'=>0])->where('work_id','<>',0)->order('id desc')->findOrEmpty();
             $order = PropertyOrder::where(['property_user_id'=>$propertyUserId,'property_head_id'=>$params['property_head_id'],'order_status'=>0])->where('work_id','<>',0)->order('id desc')->findOrEmpty();
             Log::info('物业下单-'.$order);
             Log::info('物业下单-'.$order);
-            if(empty($order)){
+            if($order->isEmpty()){
                 Log::info('物业下单-'.json_encode([
                 Log::info('物业下单-'.json_encode([
                         'property_head_id' => $params['property_head_id'],
                         'property_head_id' => $params['property_head_id'],
                         'property_user_id' => $propertyUserId,
                         'property_user_id' => $propertyUserId,