Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5403df08
authored
Aug 13, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加redis配置
parent
d4a031de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
app/Http/Controllers/OrderController.php
config/database.php
app/Http/Controllers/OrderController.php
View file @
5403df08
...
...
@@ -1704,7 +1704,8 @@ Class OrderController extends Controller
$info
=
$this
->
getPageInfo
(
$request
);
$express
=
Redis
::
get
(
$key
);
$redis
=
Redis
::
connection
(
'read'
);
$express
=
$redis
->
get
(
$key
);
if
(
!
$express
)
{
Redis
::
set
(
$key
,
json_encode
(
$express_fee
));
...
...
config/database.php
View file @
5403df08
...
...
@@ -144,5 +144,12 @@ return [
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'database'
=>
0
,
],
'read'
=>
[
'host'
=>
env
(
'REDIS_READ_HOST'
,
''
),
'password'
=>
env
(
'REDIS_READ_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_READ_PORT'
,
6379
),
'database'
=>
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