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
bb5e08ea
Commit
bb5e08ea
authored
Apr 15, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[0]
parent
86fb3da2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
RedisCacheService.php
application/api_broker/service/RedisCacheService.php
+4
-3
No files found.
application/api_broker/service/RedisCacheService.php
View file @
bb5e08ea
...
...
@@ -235,13 +235,14 @@ class RedisCacheService
$field
=
'id,name,title,pid,is_menu'
;
$data
=
$m_auth_rule
->
getRule
(
$field
,
[
'name'
=>
$name
,
'status'
=>
0
]);
$this
->
setRedisCache
(
$this
->
rule_key
.
$name
,
$data
[
0
]);
$result
=
$data
[
0
];
}
catch
(
\Exception
$e
)
{
$
data
=
[];
$
result
=
[];
}
}
else
{
$
data
=
json_decode
(
$data
,
true
);
$
result
=
json_decode
(
$data
,
true
);
}
return
$
data
;
return
$
result
;
}
/**
...
...
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