|
|
@@ -40,11 +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();
|
|
|
+ Log::info('物业下单-'.$order);
|
|
|
if(empty($order)){
|
|
|
PropertyOrder::create([
|
|
|
'property_head_id' => $params['property_head_id'],
|