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
065274fe
Commit
065274fe
authored
Jan 16, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exclusive
parent
f3980a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Houses.php
application/index/controller/Houses.php
+2
-2
HouseService.php
application/index/service/HouseService.php
+3
-4
No files found.
application/index/controller/Houses.php
View file @
065274fe
...
...
@@ -531,7 +531,7 @@ class Houses extends Basic
*/
public
function
editExclusive
()
{
if
(
empty
(
$this
->
params
[
'houses_id'
])
||
empty
(
$this
->
params
[
'exclusive_id'
])
)
{
if
(
empty
(
$this
->
params
[
'houses_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
...
...
@@ -547,7 +547,7 @@ class Houses extends Basic
$this
->
msg
=
$this
->
data
[
'msg'
];
}
}
else
{
$result
=
$house
->
delAgentHouse
(
3
,
$this
->
params
[
'houses_id'
]
,
$this
->
params
[
'exclusive_id'
]
);
$result
=
$house
->
delAgentHouse
(
3
,
$this
->
params
[
'houses_id'
]);
if
(
!
$result
)
{
$this
->
code
=
101
;
$this
->
msg
=
'解除独家关系失败'
;
...
...
application/index/service/HouseService.php
View file @
065274fe
...
...
@@ -944,18 +944,17 @@ class HouseService
* @param $agent_id
* @return GHousesToAgents|bool
*/
public
function
delAgentHouse
(
$type
,
$house_id
,
$agent_id
)
{
if
(
empty
(
$type
)
||
empty
(
$house_id
)
||
empty
(
$agent_id
)
)
{
public
function
delAgentHouse
(
$type
,
$house_id
)
{
if
(
empty
(
$type
)
||
empty
(
$house_id
))
{
return
false
;
}
$id
=
$this
->
m_house
->
getTotal
([
'id'
=>
$house_id
]);
$id
=
$this
->
m_house
->
getTotal
([
'id'
=>
$house_id
,
'is_exclusive_type'
=>
1
]);
if
(
empty
(
$id
))
{
return
false
;
}
$where
[
'houses_id'
]
=
$house_id
;
$where
[
'agents_id'
]
=
$agent_id
;
$where
[
'type'
]
=
$type
;
$is_ok
=
$this
->
agent_house
->
updateData
(
$where
,
[
'is_del'
=>
1
]);
if
(
$type
==
3
)
{
...
...
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