Explorar o código

代理二维码-转二进制方式

whitefang hai 1 ano
pai
achega
4d6a7fde57
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/api/logic/PropertyOrderLogic.php

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

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