分享页面常量
Showing
3 changed files
with
21 additions
and
0 deletions
... | @@ -80,4 +80,17 @@ class PropertyTrackService extends Service | ... | @@ -80,4 +80,17 @@ class PropertyTrackService extends Service |
80 | 80 | ||
81 | return Response::success($trackFiles); | 81 | return Response::success($trackFiles); |
82 | } | 82 | } |
83 | |||
84 | /** | ||
85 | * 资产歌曲-分享页面常量 | ||
86 | * @return \Illuminate\Http\JsonResponse | ||
87 | */ | ||
88 | public function constant() | ||
89 | { | ||
90 | $config = [ | ||
91 | 'valid_day'=>config('musician.property')['valid_day'], //有效期天数 | ||
92 | ]; | ||
93 | |||
94 | return Response::success(['config'=>$config]); | ||
95 | } | ||
83 | } | 96 | } | ... | ... |
... | @@ -20,6 +20,10 @@ Route::group(["prefix"=>"property", "middleware"=>['auth.identifier']], function | ... | @@ -20,6 +20,10 @@ Route::group(["prefix"=>"property", "middleware"=>['auth.identifier']], function |
20 | Route::get('/track/file', 'PropertyTrackController@file'); | 20 | Route::get('/track/file', 'PropertyTrackController@file'); |
21 | }); | 21 | }); |
22 | 22 | ||
23 | Route::group(["prefix"=>"property"], function (){ | ||
24 | Route::get('/share/constant', 'PropertyTrackController@constant'); | ||
25 | }); | ||
26 | |||
23 | //资产-分享链接 | 27 | //资产-分享链接 |
24 | Route::group(["prefix"=>"property", "middleware"=>['auth.share']], function (){ | 28 | Route::group(["prefix"=>"property", "middleware"=>['auth.share']], function (){ |
25 | 29 | ... | ... |
-
Please register or sign in to post a comment