Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
fc30708a
...
fc30708a74498dadc435da912c4720ca4607451f
authored
2022-12-08 15:32:33 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
df227885
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
app/Services/PropertyTrackService.php
app/Services/PropertyTrackService.php
View file @
fc30708
...
...
@@ -201,9 +201,12 @@ class PropertyTrackService extends Service
'id'
=>
$res
->
id
,
];
$token
=
getToken
(
mt_rand
());
RedisClient
::
instance
()
->
set
(
$token
,
json_encode
(
$info
),
'EX'
,
config
(
'musician.property'
)[
'token_valid'
]);
return
Response
::
success
([
'token'
=>
$token
]);
$token
=
getToken
(
mt_rand
());
$token_valid
=
config
(
'musician.property'
)[
'token_valid'
];
$expire_time
=
time
()
+
$token_valid
;
RedisClient
::
instance
()
->
set
(
$token
,
json_encode
(
$info
),
'EX'
,
$token_valid
);
return
Response
::
success
([
'token'
=>
$token
,
'expire_time'
=>
$expire_time
]);
}
...
...
Please
register
or
sign in
to post a comment