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
30783293
...
30783293f9047b48ecaed88322231045eea61b0f
authored
2022-12-06 11:32:12 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
生成链接过期时间
1 parent
6c384909
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Services/PropertyTrackService.php
config/musician.php
app/Services/PropertyTrackService.php
View file @
3078329
...
...
@@ -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
[
'valid_day'
];
$expire_time
=
time
()
+
$propertyConfig
[
'valid_day'
]
*
86400
;
//生成新链接-上一个失效
try
{
...
...
config/musician.php
View file @
3078329
...
...
@@ -8,7 +8,7 @@ return [
'property'
=>
[
'base_url'
=>
env
(
'PROPERTY_SHARE_URL'
,
'https://musician-test.hikoon.com/#/share/'
),
'valid_day'
=>
env
(
'PROPERTY_SHARE_DAY'
,
86400
*
3
),
'valid_day'
=>
env
(
'PROPERTY_SHARE_DAY'
,
3
),
'token_valid'
=>
env
(
'PROPERTY_SHARE_TOKEN'
,
86400
),
],
];
...
...
Please
register
or
sign in
to post a comment