Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhupu
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
sugar
zhupu
Commits
3ddfae0b
Commit
3ddfae0b
authored
Dec 07, 2023
by
sugar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社区自提
parent
5baf403f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
addons/fastim/controller/api/User.php
addons/fastim/controller/api/User.php
+1
-0
addons/fastim/library/Common.php
addons/fastim/library/Common.php
+1
-1
No files found.
addons/fastim/controller/api/User.php
View file @
3ddfae0b
...
...
@@ -369,6 +369,7 @@ class User extends Base
$userInfo
[
'token'
]
=
$imUser
[
'cache_token'
];
$userInfo
[
'auth_token'
]
=
Common
::
createAuthToken
(
$imUser
[
'id'
]);
$userInfo
[
'user_token'
]
=
$this
->
getRefreshtoken
(
$imUser
[
'user_id'
]);
unset
(
$userInfo
[
'cache_token'
]);
// $userInfo['imuser_id'] =$imUser['id'];
return
$userInfo
;
...
...
addons/fastim/library/Common.php
View file @
3ddfae0b
...
...
@@ -1937,7 +1937,7 @@ class Common
]);
}
$keeptime
=
864000
;
// token 10天后过期
$keeptime
=
864000
0
;
// token 10天后过期
$expiretime
=
time
()
+
$keeptime
;
$authKey
=
md5
(
md5
(
$uid
)
.
md5
(
$keeptime
)
.
md5
(
$expiretime
)
.
$authToken
);
$authToken
=
[
$uid
,
$keeptime
,
$expiretime
,
$authKey
];
...
...
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