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
dc22bac0
Commit
dc22bac0
authored
Jun 10, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放开限制
parent
28f0d46b
Pipeline
#1616
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/app/Http/Controllers/Card/CardController.php
src/app/Http/Controllers/Card/CardController.php
+5
-5
No files found.
src/app/Http/Controllers/Card/CardController.php
View file @
dc22bac0
...
...
@@ -349,9 +349,9 @@ class CardController extends Controller
}
$data
=
[];
if
(
Cache
::
has
(
'card:info:'
.
$userId
.
':'
.
$roleId
)){
$data
=
Cache
::
get
(
'card:info:'
.
$userId
.
':'
.
$roleId
);
}
else
{
//
if(Cache::has('card:info:'.$userId.':'.$roleId)){
//
$data = Cache::get('card:info:'.$userId.':'.$roleId);
//
}else{
$result
=
$this
->
getVerityLogin
(
$userId
);
if
(
$result
[
'code'
]
!=
200
)
return
$this
->
jsonReturn
(
$result
[
'code'
],
$result
[
'msg'
]);
if
(
empty
(
$roleId
)
||
empty
(
$serverId
))
return
$this
->
jsonReturn
(
7002
,
'参数错误'
);
...
...
@@ -469,8 +469,8 @@ class CardController extends Controller
}
else
{
$data
[
'braveTime'
]
=
'00:00'
;
}
Cache
::
put
(
'card:info:'
.
$userId
.
':'
.
$roleId
,
$data
,
300
);
}
//
Cache::put('card:info:'.$userId.':'.$roleId,$data,300);
//
}
if
(
Cache
::
has
(
'card:num:'
.
$userId
.
':'
.
$roleId
)){
$num
=
Cache
::
get
(
'card:num:'
.
$userId
.
':'
.
$roleId
)
+
1
;
...
...
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