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
00956c14
...
00956c141301f76ddae79ebb05d1e4d79d6f6bdd
authored
2022-12-06 10:00:00 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改验证天数
1 parent
3598be31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Services/PropertyTrackService.php
app/Services/PropertyTrackService.php
View file @
00956c1
...
...
@@ -132,7 +132,7 @@ class PropertyTrackService extends Service
$propertyConfig
=
config
(
'musician.property'
);
$share
=
$propertyConfig
[
'base_url'
]
.
uniqid
();
$share_url_hash
=
crc64
(
$share
);
$expire_time
=
time
()
+
$propertyConfig
[
'
token_valid
'
];
$expire_time
=
time
()
+
$propertyConfig
[
'
valid_day
'
];
//生成新链接-上一个失效
try
{
...
...
@@ -200,7 +200,7 @@ class PropertyTrackService extends Service
];
$token
=
getToken
(
mt_rand
());
RedisClient
::
instance
()
->
set
(
$token
,
json_encode
(
$info
),
'EX'
,
86400
);
RedisClient
::
instance
()
->
set
(
$token
,
json_encode
(
$info
),
'EX'
,
config
(
'musician.property'
)[
'token_valid'
]
);
return
Response
::
success
([
'token'
=>
$token
]);
}
...
...
Please
register
or
sign in
to post a comment