Przeglądaj źródła

Merge branch 'master' of e.coding.net:zdap/weixiu/weixiu_api into sale-m

liugc 1 rok temu
rodzic
commit
a1ce50e59d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/api/logic/PropertyOrderLogic.php

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

@@ -40,12 +40,12 @@ class PropertyOrderLogic extends BaseLogic
         Db::startTrans();
         try {
             $property = PropertyHead::where('id',$params['property_head_id'])->findOrEmpty();
-            $address = $property['adress'];
+            $address = $property['address'];
             if(empty($property)){
                throw new Exception('物业代理不存在');
             }
             $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();
-            if(empty($order)){
+            if($order->isEmpty()){
                 PropertyOrder::create([
                     'property_head_id' => $params['property_head_id'],
                     'property_user_id' => $propertyUserId,