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
bda6f6ac
...
bda6f6ac12dbd218d8f1bb27edeb3788d823d896
authored
2022-12-04 18:09:53 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分享页面常量
1 parent
6a2b6e61
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
app/Services/PropertyTrackService.php
config/musician.php
routes/property.php
app/Services/PropertyTrackService.php
View file @
bda6f6a
...
...
@@ -80,4 +80,17 @@ class PropertyTrackService extends Service
return
Response
::
success
(
$trackFiles
);
}
/**
* 资产歌曲-分享页面常量
* @return \Illuminate\Http\JsonResponse
*/
public
function
constant
()
{
$config
=
[
'valid_day'
=>
config
(
'musician.property'
)[
'valid_day'
],
//有效期天数
];
return
Response
::
success
([
'config'
=>
$config
]);
}
}
...
...
config/musician.php
View file @
bda6f6a
...
...
@@ -5,4 +5,8 @@ return [
'wallet'
=>
[
'addIncome'
=>
'/api/wallet/addIncome'
,
//同步数据
],
'property'
=>
[
'valid_day'
=>
env
(
'PROPERTY_SHARE_DAY'
,
3
),
],
];
...
...
routes/property.php
View file @
bda6f6a
...
...
@@ -20,6 +20,10 @@ Route::group(["prefix"=>"property", "middleware"=>['auth.identifier']], function
Route
::
get
(
'/track/file'
,
'PropertyTrackController@file'
);
});
Route
::
group
([
"prefix"
=>
"property"
],
function
(){
Route
::
get
(
'/share/constant'
,
'PropertyTrackController@constant'
);
});
//资产-分享链接
Route
::
group
([
"prefix"
=>
"property"
,
"middleware"
=>
[
'auth.share'
]],
function
(){
...
...
Please
register
or
sign in
to post a comment