Commit 6aa5ba7d authored by zhuwei's avatar zhuwei

1

parent 47cc0d5e
...@@ -724,7 +724,7 @@ class OfficeRoomService ...@@ -724,7 +724,7 @@ class OfficeRoomService
$house_img_data[$k]['image_path'] = $this->internet_path.$v['img_name']; $house_img_data[$k]['image_path'] = $this->internet_path.$v['img_name'];
} }
} }
return $house_img_data; return $house_img_data?$house_img_data:'';
} }
//交通信息 //交通信息
...@@ -753,7 +753,7 @@ class OfficeRoomService ...@@ -753,7 +753,7 @@ class OfficeRoomService
$agent['name'] = $res['name']; $agent['name'] = $res['name'];
$agent['phone'] = $res['phone']; $agent['phone'] = $res['phone'];
} }
return $agent; return $agent?$agent:null;
} }
//获取独家方 //获取独家方
...@@ -767,8 +767,7 @@ class OfficeRoomService ...@@ -767,8 +767,7 @@ class OfficeRoomService
$exclusive_info['name'] = $res[0]['name']; $exclusive_info['name'] = $res[0]['name'];
$exclusive_info['phone'] = $res[0]['phone']; $exclusive_info['phone'] = $res[0]['phone'];
} }
return $exclusive_info ? $exclusive_info : null;
return $exclusive_info;
} }
......
...@@ -331,6 +331,21 @@ class Users extends Model ...@@ -331,6 +331,21 @@ class Users extends Model
$insert_data['referrer_id'] = $data['referrer_id']; $insert_data['referrer_id'] = $data['referrer_id'];
$insert_data['referrer_source'] = $data['referrer_source']; $insert_data['referrer_source'] = $data['referrer_source'];
} }
if (isset($data['entrust_type'])) {
$insert_data['entrust_type'] = $data['entrust_type'];
}
if (isset($data['weixin_nick'])) {
$insert_data['weixin_nick'] = $data['weixin_nick'];
}
if (isset($data['concrete_industry'])) {
$insert_data['concrete_industry'] = $data['concrete_industry'];
}
if ($id && $id > 0) { if ($id && $id > 0) {
//修改 //修改
$insert_data['update_time'] = date('Y-m-d H:i:s'); $insert_data['update_time'] = date('Y-m-d H:i:s');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment