Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fusionapi
Project
Project
Details
Activity
Releases
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
林洽文
fusionapi
Commits
e4e2d607
Commit
e4e2d607
authored
May 05, 2023
by
zazaname
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
parent
9eb97e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
LoginService.php
app/Http/Service/LoginService.php
+1
-2
No files found.
app/Http/Service/LoginService.php
View file @
e4e2d607
...
@@ -86,8 +86,7 @@ class LoginService
...
@@ -86,8 +86,7 @@ class LoginService
]);
]);
// 产生一个token ,存redis ,有效期5分钟
// 产生一个token ,存redis ,有效期5分钟
$uid
=
$uid
??
$userInfo
->
uid
;
$uid
=
$uid
??
$userInfo
->
uid
;
$time
=
date
(
'Y-m-d H:i:s'
);
$value
=
$uid
.
'|'
.
$gameInfo
->
app_id
.
'|'
.
$gameInfo
->
appkey
.
'|'
.
time
();
$value
=
$uid
.
'|'
.
$gameInfo
->
app_id
.
'|'
.
$gameInfo
->
appkey
.
'|'
.
$time
;
$key
=
md5
(
$value
);
$key
=
md5
(
$value
);
Redis
::
setex
(
$key
,
60
*
60
,
$value
);
Redis
::
setex
(
$key
,
60
*
60
,
$value
);
return
success
(
"第三方登录成功!"
,
[
'token'
=>
$key
,
'uid'
=>
$uid
]);
return
success
(
"第三方登录成功!"
,
[
'token'
=>
$key
,
'uid'
=>
$uid
]);
...
...
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