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
e823ca26
Commit
e823ca26
authored
Jul 30, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总监权限查看
parent
11466d0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+5
-5
RedisCacheService.php
application/api_broker/service/RedisCacheService.php
+0
-1
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
e823ca26
...
...
@@ -46,13 +46,13 @@ class ApplyForCost extends Basic
$get_check_user
=
'index/getCostListOne/0'
;
$is_check
=
$this
->
checkAuth
(
$get_check_user
);
if
(
$is_check
)
{
$where
[
'a.store_id'
]
=
$agent_data
[
'store_id'
];
}
else
{
$m_agent
=
new
AAgents
();
$district_id
=
$m_agent
->
getAgentsByWhereColumn
([
'phone'
=>
$this
->
agentPhone
],
'district_id'
);
if
(
$district_id
)
{
$where
[
'b.district_id'
]
=
[
'in'
,
$district_id
];
//总监多个账号查看
}
}
else
{
$where
[
'a.store_id'
]
=
$agent_data
[
'store_id'
];
}
break
;
case
2
:
...
...
@@ -63,19 +63,19 @@ class ApplyForCost extends Basic
$get_check_user
=
'index/getCostListTwo/1'
;
$is_check
=
$this
->
checkAuth
(
$get_check_user
);
if
(
$is_check
)
{
if
(
!
$is_check
)
{
$get_check_user
=
'index/getCostListOne/0'
;
$is_check
=
$this
->
checkAuth
(
$get_check_user
);
if
(
$is_check
)
{
$where
[
'a.store_id'
]
=
$agent_data
[
'store_id'
];
//店长查看
}
else
{
$m_agent
=
new
AAgents
();
$district_id
=
$m_agent
->
getAgentsByWhereColumn
([
'phone'
=>
$this
->
agentPhone
],
'district_id'
);
if
(
$district_id
)
{
$district_id
[]
=
$agent_data
[
'district_id'
];
$where
[
'b.district_id'
]
=
[
'in'
,
$district_id
];
//总监多个账号查看
}
}
else
{
$where
[
'a.store_id'
]
=
$agent_data
[
'store_id'
];
//店长查看
}
}
//财务一审查看
...
...
application/api_broker/service/RedisCacheService.php
View file @
e823ca26
...
...
@@ -433,7 +433,6 @@ class RedisCacheService
$rules_arr
=
explode
(
','
,
$rules
);
$result
=
1
;
big_log
(
json_encode
(
$rules_arr
),
'check_rule'
);
if
(
in_array
(
$auth_rule_id
,
$rules_arr
))
{
$result
=
0
;
}
...
...
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