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
e1d70e2f
Commit
e1d70e2f
authored
Jan 16, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exclusive
parent
065274fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Shop.php
application/api_broker/controller/Shop.php
+5
-2
Houses.php
application/index/controller/Houses.php
+3
-0
No files found.
application/api_broker/controller/Shop.php
View file @
e1d70e2f
...
...
@@ -1032,20 +1032,23 @@ class Shop extends Basic
*/
public
function
editExclusive
()
{
if
(
empty
(
$this
->
params
[
'id'
])
||
empty
(
$this
->
params
[
'exclusive_ids'
])
)
{
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$code
=
200
;
$msg
=
""
;
$house
=
new
HouseService
();
if
(
$this
->
params
[
'is_exclusive_type'
]
==
1
)
{
if
(
empty
(
$this
->
params
[
'exclusive_ids'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$result
=
$house
->
addHouse
(
$this
->
params
,
$this
->
agentId
,
1
,
0
,
'exclusive'
);
if
(
$result
[
'status'
]
==
'fail'
)
{
$code
=
101
;
$msg
=
$result
[
'msg'
];
}
}
else
{
$result
=
$house
->
delAgentHouse
(
3
,
$this
->
params
[
'id'
]
,
$this
->
params
[
'exclusive_ids'
]
);
$result
=
$house
->
delAgentHouse
(
3
,
$this
->
params
[
'id'
]);
if
(
!
$result
)
{
$code
=
101
;
$msg
=
'解除独家关系失败'
;
...
...
application/index/controller/Houses.php
View file @
e1d70e2f
...
...
@@ -537,6 +537,9 @@ class Houses extends Basic
$house
=
new
HouseService
();
if
(
$this
->
params
[
'is_exclusive_type'
]
==
1
)
{
if
(
empty
(
$this
->
params
[
'exclusive_ids'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$data
=
$this
->
params
;
$data
[
'id'
]
=
$this
->
params
[
'houses_id'
];
unset
(
$data
[
'houses_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