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
c3e87c3d
Commit
c3e87c3d
authored
Dec 17, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据商铺id获取商铺独家方 bug
parent
713faeb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Shop.php
application/api_broker/controller/Shop.php
+1
-1
HouseService.php
application/index/service/HouseService.php
+2
-0
No files found.
application/api_broker/controller/Shop.php
View file @
c3e87c3d
...
...
@@ -661,7 +661,7 @@ class Shop extends Basic
//判断是否有权限点击独家合同按钮 0:可查看 1:不可查看
$s_house
=
new
HouseService
();
$result
[
'is_can_edit_only_contract'
]
=
$s_house
->
isCanEditOnlyContract
(
$this
->
agentId
,
$params
[
"id"
]);
unset
(
$result
[
'external_image_id'
]);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
...
...
application/index/service/HouseService.php
View file @
c3e87c3d
...
...
@@ -695,6 +695,7 @@ class HouseService
$params__
[
'district_id'
]
=
$result
[
0
][
'district_id'
];
$params__
[
'level'
]
=
30
;
$result_zj
=
$this
->
agent
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params__
);
if
((
$shop_agent_id
==
$agent_id
)
or
(
$result_dz
[
0
][
'store_id'
]
==
$agent_id
)
or
(
$result_zj
[
0
][
'district_id'
]
==
$agent_id
))
{
return
0
;
//可编辑
}
else
{
...
...
@@ -710,6 +711,7 @@ class HouseService
public
function
getShopOnlyAgentId
(
$shop_id
){
$where_houses_to_agents
[
'houses_id'
]
=
$shop_id
;
$where_houses_to_agents
[
'type'
]
=
3
;
$where_houses_to_agents
[
'is_del'
]
=
0
;
return
$this
->
agent_house
->
getAgentHouseValue
(
'agents_id'
,
$where_houses_to_agents
);
}
...
...
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