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
c9a016c5
Commit
c9a016c5
authored
Dec 18, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
47e38a24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
HouseService.php
application/index/service/HouseService.php
+4
-1
No files found.
application/index/service/HouseService.php
View file @
c9a016c5
...
...
@@ -23,6 +23,7 @@ use app\model\GHousesToAgents;
use
app\model\GLandlordPhone
;
use
app\model\GOperatingRecords
;
use
app\task\controller\ResultsSummaryNewTask
;
use
think\Log
;
class
HouseService
{
...
...
@@ -696,7 +697,7 @@ class HouseService
$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
))
{
if
((
$shop_agent_id
==
$agent_id
)
or
(
$result_dz
[
0
][
'
id'
]
==
$agent_id
)
or
(
$result_zj
[
0
][
'
id'
]
==
$agent_id
))
{
return
0
;
//可编辑
}
else
{
return
1
;
//不可编辑
...
...
@@ -727,6 +728,8 @@ class HouseService
if
(
$is_quanxian
==
1
){
//是否存在独家方 查询
$m_houses_to_agents_res
=
$this
->
getShopOnlyAgentId
(
$shop_id
);
$content
=
"独家方:
{
$m_houses_to_agents_res
}
商铺ID:
{
$shop_id
}
"
;
file_put_contents
(
'/wwwdata/webroot/work/tl_test/runtime/log/201812/bug.log'
,
$content
.
"
\r\n
"
,
FILE_APPEND
);
if
(
$m_houses_to_agents_res
){
//存在独家方则判断当前经纪人是否是该独家方的总监或者店长
return
$this
->
isUserAgentBoss
(
$m_houses_to_agents_res
,
$agent_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