Commit c259e6a6 authored by hujun's avatar hujun

empty

parent bc580d5c
...@@ -91,7 +91,7 @@ class HouseService ...@@ -91,7 +91,7 @@ class HouseService
return $result; return $result;
} }
if (isset($data['landlord_phone'])) { if (!empty($data['landlord_phone'])) {
if ($is_app == 1) { if ($is_app == 1) {
$landlord_phone_new = json_decode($data['landlord_phone'], true); $landlord_phone_new = json_decode($data['landlord_phone'], true);
} else { } else {
...@@ -156,21 +156,21 @@ class HouseService ...@@ -156,21 +156,21 @@ class HouseService
//商铺图片 //商铺图片
if ($is_app == 1) { if ($is_app == 1) {
if (isset($data['cover'])) { if (!empty($data['cover'])) {
$data['cover'] = json_decode($data['cover'], true); $data['cover'] = json_decode($data['cover'], true);
foreach ($data['cover'] as $k=>$v) { foreach ($data['cover'] as $k=>$v) {
$data['cover'][$k] = stripslashes($v); $data['cover'][$k] = stripslashes($v);
} }
} }
if (isset($data['slide_show'])) { if (!empty($data['slide_show'])) {
$data['slide_show'] = json_decode($data['slide_show'], true); $data['slide_show'] = json_decode($data['slide_show'], true);
foreach ($data['slide_show'] as $k=>$v) { foreach ($data['slide_show'] as $k=>$v) {
$data['slide_show'][$k] = stripslashes($v); $data['slide_show'][$k] = stripslashes($v);
} }
} }
if (isset($data['exclusive_img'])) { if (!empty($data['exclusive_img'])) {
$data['exclusive_img'] = json_decode($data['exclusive_img'], true); $data['exclusive_img'] = json_decode($data['exclusive_img'], true);
foreach ($data['exclusive_img'] as $k=>$v) { foreach ($data['exclusive_img'] as $k=>$v) {
$data['exclusive_img'][$k] = stripslashes($v); $data['exclusive_img'][$k] = stripslashes($v);
...@@ -178,7 +178,7 @@ class HouseService ...@@ -178,7 +178,7 @@ class HouseService
} }
} }
if (isset($data['cover'])) { if (!empty($data['cover'])) {
$image_result = $house_img->editV2($data['cover'], $house_id, 1); $image_result = $house_img->editV2($data['cover'], $house_id, 1);
if ($image_result['status'] == 'fail') { if ($image_result['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -187,7 +187,7 @@ class HouseService ...@@ -187,7 +187,7 @@ class HouseService
} }
} }
if (isset($data['slide_show'])) { if (!empty($data['slide_show'])) {
$image_result = $house_img->editV2($data['slide_show'], $house_id, 2); $image_result = $house_img->editV2($data['slide_show'], $house_id, 2);
if ($image_result['status'] == 'fail') { if ($image_result['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -196,7 +196,7 @@ class HouseService ...@@ -196,7 +196,7 @@ class HouseService
} }
} }
if (isset($data['plan'])) { if (!empty($data['plan'])) {
$image_result = $house_img->editV2($data['plan'], $house_id, 3); $image_result = $house_img->editV2($data['plan'], $house_id, 3);
if ($image_result['status'] == 'fail') { if ($image_result['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -205,7 +205,7 @@ class HouseService ...@@ -205,7 +205,7 @@ class HouseService
} }
} }
if (isset($data['exclusive_img'])) { if (!empty($data['exclusive_img'])) {
$image_result = $house_img->editV2($data['exclusive_img'], $house_id, 4); $image_result = $house_img->editV2($data['exclusive_img'], $house_id, 4);
if ($image_result['status'] == 'fail') { if ($image_result['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -227,7 +227,7 @@ class HouseService ...@@ -227,7 +227,7 @@ class HouseService
// } // }
//案场权限人 //案场权限人
if (isset($data['agent_data'])) { if (!empty($data['agent_data'])) {
$result_agent_data = $this->releaseRelationshipV2($data['agent_data'], $house_id, 1, $agent_id, $data['internal_title'], $site_id); $result_agent_data = $this->releaseRelationshipV2($data['agent_data'], $house_id, 1, $agent_id, $data['internal_title'], $site_id);
if ($result_agent_data['status'] == 'fail') { if ($result_agent_data['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -237,7 +237,7 @@ class HouseService ...@@ -237,7 +237,7 @@ class HouseService
} }
//盘方 //盘方
if (isset($data['agent_dish'])) { if (!empty($data['agent_dish'])) {
$result_agent_dish = $this->releaseRelationshipV2($data['agent_dish'], $house_id, 2, $agent_id, $data['internal_title'], $site_id); $result_agent_dish = $this->releaseRelationshipV2($data['agent_dish'], $house_id, 2, $agent_id, $data['internal_title'], $site_id);
if ($result_agent_dish['status'] == 'fail') { if ($result_agent_dish['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
...@@ -247,7 +247,7 @@ class HouseService ...@@ -247,7 +247,7 @@ class HouseService
} }
//独家方 //独家方
if (isset($data['exclusive_ids'])) { if (!empty($data['exclusive_ids'])) {
$result_exclusive_ids = $this->releaseRelationshipV2($data['exclusive_ids'], $house_id, 3, $agent_id, $data['internal_title'], $site_id); $result_exclusive_ids = $this->releaseRelationshipV2($data['exclusive_ids'], $house_id, 3, $agent_id, $data['internal_title'], $site_id);
if ($result_exclusive_ids['status'] == 'fail') { if ($result_exclusive_ids['status'] == 'fail') {
$result['status'] = 'fail'; $result['status'] = 'fail';
......
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