Commit bda6f6ac bda6f6ac12dbd218d8f1bb27edeb3788d823d896 by lemon

分享页面常量

1 parent 6a2b6e61
...@@ -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 }
......
...@@ -5,4 +5,8 @@ return [ ...@@ -5,4 +5,8 @@ return [
5 'wallet'=> [ 5 'wallet'=> [
6 'addIncome'=>'/api/wallet/addIncome', //同步数据 6 'addIncome'=>'/api/wallet/addIncome', //同步数据
7 ], 7 ],
8
9 'property'=>[
10 'valid_day'=>env('PROPERTY_SHARE_DAY', 3),
11 ],
8 ]; 12 ];
......
...@@ -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
......