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
75de9e5e
Commit
75de9e5e
authored
Sep 13, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
4929db98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
Shop.php
application/api_broker/controller/Shop.php
+10
-8
No files found.
application/api_broker/controller/Shop.php
View file @
75de9e5e
...
@@ -115,14 +115,16 @@ class Shop extends Basic
...
@@ -115,14 +115,16 @@ class Shop extends Basic
}
}
$houseIds
=
""
;
$houseIds
=
""
;
if
(
isset
(
$params
[
'landlord_phone'
]))
{
$houseIds
=
$this
->
returnHouseId
(
$params
[
'landlord_phone'
]);
if
(
empty
(
$houseIds
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
if
(
isset
(
$params
[
'house_id'
]))
{
if
(
isset
(
$params
[
'house_id'
]))
{
$houseIds
=
$params
[
'house_id'
];
$houseIds
=
$params
[
'house_id'
];
}
else
{
if
(
isset
(
$params
[
'landlord_phone'
]))
{
$houseIds
=
$this
->
returnHouseId
(
$params
[
'landlord_phone'
]);
if
(
empty
(
$houseIds
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
}
}
if
(
!
empty
(
$houseIds
))
{
if
(
!
empty
(
$houseIds
))
{
$conditions
[
'id'
]
=
array
(
"in"
,
$houseIds
);
$conditions
[
'id'
]
=
array
(
"in"
,
$houseIds
);
...
@@ -432,11 +434,11 @@ class Shop extends Basic
...
@@ -432,11 +434,11 @@ class Shop extends Basic
{
{
$result
[
'code'
]
=
200
;
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$result
[
'msg'
]
=
''
;
$result_data
=
[];
$result_data
=
[];
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
request
->
isPost
())
{
$house
=
new
HouseService
();
$house
=
new
HouseService
();
$data
=
$house
->
addHouse
(
$this
->
params
,
$this
->
agentId
,
1
);
$data
=
$house
->
addHouse
(
$this
->
params
,
$this
->
agentId
,
1
);
if
(
$data
[
'status'
]
==
'successful'
)
{
if
(
$data
[
'status'
]
==
'successful'
)
{
$result_data
[
'house_id'
]
=
$data
[
'data'
][
'house_id'
];
$result_data
[
'house_id'
]
=
$data
[
'data'
][
'house_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