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
f145a24f
Commit
f145a24f
authored
Aug 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的商铺显示
parent
a9def140
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Shop.php
application/api_broker/controller/Shop.php
+6
-5
No files found.
application/api_broker/controller/Shop.php
View file @
f145a24f
...
...
@@ -192,6 +192,7 @@ class Shop extends Basic
}
//如果有传经纪人id则代表我的商铺不区分状态
if
(
isset
(
$params
[
'agent_id'
]))
{
unset
(
$conditions
[
"city"
]);
//$conditions['status'] = array( 'in', "1,2" ); //只显示上架或下架的
$conditions
[
'status'
]
=
!
empty
(
$params
[
'status'
])
?
$params
[
'status'
]
:
array
(
'in'
,
"1,2"
);
//只显示上架或下架的
}
...
...
@@ -354,8 +355,8 @@ class Shop extends Basic
//上传人
$m_agent
=
new
AAgents
();
$upload_data
=
$m_agent
->
getAgentById
(
'name,phone'
,[
'agent_id'
=>
$result
[
'upload_id'
]
]);
$result
[
'upload_user'
]
=
$upload_data
[
0
][
'name'
]
.
'-'
.
$upload_data
[
0
][
'phone'
];
$upload_data
=
$m_agent
->
getAgentById
(
'name,phone'
,
[
'agent_id'
=>
$result
[
'upload_id'
]
]);
$result
[
'upload_user'
]
=
$upload_data
[
0
][
'name'
]
.
'-'
.
$upload_data
[
0
][
'phone'
];
//独家方
if
(
$result
[
'is_exclusive_type'
]
==
1
)
{
...
...
@@ -364,7 +365,7 @@ class Shop extends Basic
$where_house
[
'type'
]
=
3
;
$where_house
[
'houses_id'
]
=
$result
[
'id'
];
$house_agent_data
=
$m_house_agent
->
getAgentsByHouseId
(
'name,phone'
,
$where_house
);
$result
[
'exclusive_user'
]
=
$house_agent_data
[
0
][
'name'
]
.
'-'
.
$house_agent_data
[
0
][
'phone'
];
$result
[
'exclusive_user'
]
=
$house_agent_data
[
0
][
'name'
]
.
'-'
.
$house_agent_data
[
0
][
'phone'
];
}
}
...
...
@@ -376,8 +377,8 @@ class Shop extends Basic
$get_params
[
'agents_id'
]
=
$params
[
"user_id"
];
$get_params
[
'house_id'
]
=
$params
[
"id"
];
$collect_house
=
new
ACollectHouse
();
$res
=
$collect_house
->
getCollectHouse
(
$field
,
$get_params
);
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
))
{
//如果存在
$res
=
$collect_house
->
getCollectHouse
(
$field
,
$get_params
);
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
))
{
//如果存在
$result
[
"is_collect"
]
=
1
;
}
}
...
...
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