Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
c259e6a6
Commit
c259e6a6
authored
Jan 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
empty
parent
bc580d5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
HouseService.php
application/index/service/HouseService.php
+11
-11
No files found.
application/index/service/HouseService.php
View file @
c259e6a6
...
...
@@ -91,7 +91,7 @@ class HouseService
return
$result
;
}
if
(
isset
(
$data
[
'landlord_phone'
]))
{
if
(
!
empty
(
$data
[
'landlord_phone'
]))
{
if
(
$is_app
==
1
)
{
$landlord_phone_new
=
json_decode
(
$data
[
'landlord_phone'
],
true
);
}
else
{
...
...
@@ -156,21 +156,21 @@ class HouseService
//商铺图片
if
(
$is_app
==
1
)
{
if
(
isset
(
$data
[
'cover'
]))
{
if
(
!
empty
(
$data
[
'cover'
]))
{
$data
[
'cover'
]
=
json_decode
(
$data
[
'cover'
],
true
);
foreach
(
$data
[
'cover'
]
as
$k
=>
$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
);
foreach
(
$data
[
'slide_show'
]
as
$k
=>
$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
);
foreach
(
$data
[
'exclusive_img'
]
as
$k
=>
$v
)
{
$data
[
'exclusive_img'
][
$k
]
=
stripslashes
(
$v
);
...
...
@@ -178,7 +178,7 @@ class HouseService
}
}
if
(
isset
(
$data
[
'cover'
]))
{
if
(
!
empty
(
$data
[
'cover'
]))
{
$image_result
=
$house_img
->
editV2
(
$data
[
'cover'
],
$house_id
,
1
);
if
(
$image_result
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -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
);
if
(
$image_result
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -196,7 +196,7 @@ class HouseService
}
}
if
(
isset
(
$data
[
'plan'
]))
{
if
(
!
empty
(
$data
[
'plan'
]))
{
$image_result
=
$house_img
->
editV2
(
$data
[
'plan'
],
$house_id
,
3
);
if
(
$image_result
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -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
);
if
(
$image_result
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -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
);
if
(
$result_agent_data
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -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
);
if
(
$result_agent_dish
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -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
);
if
(
$result_exclusive_ids
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment