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
23213e02
Commit
23213e02
authored
Jun 13, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊权限处理
parent
88d7150c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Basic.php
application/index/extend/Basic.php
+14
-14
No files found.
application/index/extend/Basic.php
View file @
23213e02
...
...
@@ -248,9 +248,9 @@ class Basic extends Controller
if
(
empty
(
$this
->
params
[
'id'
]))
{
$is_auth
=
1
;
}
else
{
$where
[
'house
s
_id'
]
=
$this
->
params
[
'id'
];
$where
[
'house_id'
]
=
$this
->
params
[
'id'
];
$where
[
'type'
]
=
2
;
$where
[
'agent
s
_id'
]
=
$this
->
userId
;
$where
[
'agent_id'
]
=
$this
->
userId
;
$where
[
'is_del'
]
=
0
;
$is_
=
$agent_house
->
getTotal
(
$where
);
$is_auth
=
$is_
>
0
?
1
:
0
;
...
...
@@ -258,7 +258,7 @@ class Basic extends Controller
//处理店长权限
if
(
!
$is_auth
)
{
$where_agent
[
'a.house
s
_id'
]
=
$this
->
params
[
'id'
];
$where_agent
[
'a.house_id'
]
=
$this
->
params
[
'id'
];
$where_agent
[
'a.type'
]
=
2
;
$where_agent
[
'a.is_del'
]
=
0
;
$store_id_arr
=
$agent_house
->
getAgentsByRoomColumn
(
'b.store_id'
,
$where_agent
);
...
...
@@ -275,17 +275,17 @@ class Basic extends Controller
}
//有VIP盘权限处理
if
(
!
$is_auth
)
{
$m_house
=
new
OfficeGRoom
();
$is_vip
=
$m_house
->
getFieldOneValue
(
'is_vip'
,
[
'id'
=>
$this
->
params
[
'id'
]]);
if
(
$is_vip
)
{
$check_auth
=
new
VipService
();
$check_rule
=
$check_auth
->
checkRule
(
$this
->
userId
,
'office_index/vipHouse'
);
if
(
!
$check_rule
)
{
$is_auth
=
1
;
}
}
}
//
if (!$is_auth) {
//
$m_house = new OfficeGRoom();
//
$is_vip = $m_house->getFieldOneValue('is_vip', ['id'=>$this->params['id']]);
//
if ($is_vip) {
//
$check_auth = new VipService();
//
$check_rule = $check_auth->checkRule($this->userId, 'office_index/vipHouse');
//
if (!$check_rule) {
//
$is_auth = 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