Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
81b0d9e1
Commit
81b0d9e1
authored
Jun 09, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信
parent
cfe1e462
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/app/Http/Controllers/Card/CardController.php
src/app/Http/Controllers/Card/CardController.php
+7
-1
No files found.
src/app/Http/Controllers/Card/CardController.php
View file @
81b0d9e1
...
@@ -341,9 +341,13 @@ class CardController extends Controller
...
@@ -341,9 +341,13 @@ class CardController extends Controller
$userId
=
$request
->
session
()
->
get
(
"uid"
);
$userId
=
$request
->
session
()
->
get
(
"uid"
);
$roleId
=
$request
->
input
(
'roleId'
);
$roleId
=
$request
->
input
(
'roleId'
);
$serverId
=
$request
->
input
(
'serverId'
);
$serverId
=
$request
->
input
(
'serverId'
);
if
(
Cache
::
has
(
'card:num:'
.
$userId
.
':'
.
$roleId
))
return
exit
(
'页面走丢了,请稍后再试!'
);
if
(
Cache
::
has
(
'card:info:'
.
$userId
.
':'
.
$roleId
)){
if
(
Cache
::
has
(
'card:info:'
.
$userId
.
':'
.
$roleId
)){
$data
=
Cache
::
get
(
'card:info:'
.
$userId
.
':'
.
$roleId
,[]
);
$data
=
Cache
::
get
(
'card:info:'
.
$userId
.
':'
.
$roleId
);
}
else
{
}
else
{
$data
=
[];
$result
=
$this
->
getVerityLogin
(
$userId
);
$result
=
$this
->
getVerityLogin
(
$userId
);
if
(
$result
[
'code'
]
!=
200
)
return
$this
->
jsonReturn
(
$result
[
'code'
],
$result
[
'msg'
]);
if
(
$result
[
'code'
]
!=
200
)
return
$this
->
jsonReturn
(
$result
[
'code'
],
$result
[
'msg'
]);
if
(
empty
(
$roleId
)
||
empty
(
$serverId
))
return
$this
->
jsonReturn
(
7002
,
'参数错误'
);
if
(
empty
(
$roleId
)
||
empty
(
$serverId
))
return
$this
->
jsonReturn
(
7002
,
'参数错误'
);
...
@@ -455,6 +459,8 @@ class CardController extends Controller
...
@@ -455,6 +459,8 @@ class CardController extends Controller
}
}
Cache
::
put
(
'card:info:'
.
$userId
.
':'
.
$roleId
,
300
,
$data
);
Cache
::
put
(
'card:info:'
.
$userId
.
':'
.
$roleId
,
300
,
$data
);
}
}
Cache
::
put
(
'card:num:'
.
$userId
.
':'
.
$roleId
,
1
,
5
);
return
view
(
'card.card'
,
$data
);
return
view
(
'card.card'
,
$data
);
}
}
}
}
\ No newline at end of file
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