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
578fdd3f
Commit
578fdd3f
authored
Nov 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
33d16f1d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Shop.php
application/api_broker/controller/Shop.php
+3
-0
HouseService.php
application/index/service/HouseService.php
+1
-1
No files found.
application/api_broker/controller/Shop.php
View file @
578fdd3f
...
@@ -461,6 +461,9 @@ class Shop extends Basic
...
@@ -461,6 +461,9 @@ class Shop extends Basic
if
(
$is_show_landlord
)
{
if
(
$is_show_landlord
)
{
$m_landlord
=
new
GLandlordPhone
();
$m_landlord
=
new
GLandlordPhone
();
$result
[
'landlord_phone'
]
=
$m_landlord
->
getAllList
(
'id,name,phone'
,[
'house_id'
=>
$params
[
"id"
],
'status'
=>
1
]);
$result
[
'landlord_phone'
]
=
$m_landlord
->
getAllList
(
'id,name,phone'
,[
'house_id'
=>
$params
[
"id"
],
'status'
=>
1
]);
foreach
(
$result
[
'landlord_phone'
]
as
$kk
=>
$vv
){
$result
[
'landlord_phone'
][
$kk
][
'name'
]
=
'(编号ID:'
.
$result
[
'landlord_phone'
][
$kk
][
'id'
]
.
')'
.
$result
[
'landlord_phone'
][
$kk
][
'name'
];
}
$result
[
'is_show_landlord'
]
=
1
;
$result
[
'is_show_landlord'
]
=
1
;
}
else
{
}
else
{
$result
[
'landlord_phone'
]
=
[[
'name'
=>
''
,
'phone'
=>
''
]];
$result
[
'landlord_phone'
]
=
[[
'name'
=>
''
,
'phone'
=>
''
]];
...
...
application/index/service/HouseService.php
View file @
578fdd3f
...
@@ -78,7 +78,7 @@ class HouseService
...
@@ -78,7 +78,7 @@ class HouseService
}
else
{
}
else
{
$landlord_phone_new
=
$data
[
'landlord_phone'
];
$landlord_phone_new
=
$data
[
'landlord_phone'
];
}
}
$landlord_phone_old
=
$this
->
landlordPhoneEdit
(
$landlord_phone_new
,
$data
[
'id'
]);
die
;
if
(
!
empty
(
$data
[
'id'
]))
{
if
(
!
empty
(
$data
[
'id'
]))
{
$house_data
=
$this
->
m_house
->
getHouseInfo
(
'id,internal_address,internal_title'
,
[
'id'
=>
$data
[
'id'
]]);
$house_data
=
$this
->
m_house
->
getHouseInfo
(
'id,internal_address,internal_title'
,
[
'id'
=>
$data
[
'id'
]]);
if
(
empty
(
$house_data
[
0
][
'id'
]))
{
if
(
empty
(
$house_data
[
0
][
'id'
]))
{
...
...
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