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
06eb562e
Commit
06eb562e
authored
Mar 04, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取权限
parent
8983ced2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ReportService.php
application/api_broker/service/ReportService.php
+3
-3
VipService.php
application/api_broker/service/VipService.php
+0
-1
No files found.
application/api_broker/service/ReportService.php
View file @
06eb562e
...
...
@@ -372,15 +372,15 @@ class ReportService
public
function
getCheckType
(
$agent_id
)
{
$vip
=
new
VipService
();
if
(
$vip
->
vip
(
$agent_id
,
'in
dex/inspectionRecordAll/3'
)
){
//代表公司
if
(
$vip
->
vip
(
$agent_id
,
'in
spectionRecordAll/3'
)
==
0
){
//代表公司
return
1
;
}
if
(
$vip
->
vip
(
$agent_id
,
'in
dex/inspectionRecordDistrict/2'
)
){
//代表部门
if
(
$vip
->
vip
(
$agent_id
,
'in
spectionRecordDistrict/2'
)
==
0
){
//代表部门
return
2
;
}
if
(
$vip
->
vip
(
$agent_id
,
'in
dex/inspectionRecordStore/1'
)
){
//代表门店
if
(
$vip
->
vip
(
$agent_id
,
'in
spectionRecordStore/1'
)
==
0
){
//代表门店
return
3
;
}
return
0
;
...
...
application/api_broker/service/VipService.php
View file @
06eb562e
...
...
@@ -41,7 +41,6 @@ class VipService
$fields
=
'auth_group_id'
;
$auth_group_id
=
$this
->
agentModel
->
getAgentsById
(
$id
,
$fields
);
$fields
=
'rules'
;
$rules
=
$this
->
groupModel
->
getAuthGroupById
(
$auth_group_id
,
$fields
);
...
...
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