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
ed51d0e3
...
ed51d0e343b424d8bd5b0117586997470927bb92
authored
2022-12-04 18:41:29 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
bda6f6ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
6 deletions
app/Http/Kernel.php
app/Models/Legal/PropertyShareVerification.php
app/Services/PropertyTrackService.php
routes/property.php
app/Http/Kernel.php
View file @
ed51d0e
...
...
@@ -3,6 +3,7 @@
namespace
App\Http
;
use
App\Http\Middleware\AuthIdentifier
;
use
App\Http\Middleware\AuthShare
;
use
Fruitcake\Cors\HandleCors
;
use
Illuminate\Foundation\Http\Kernel
as
HttpKernel
;
use
Illuminate\Routing\Middleware\ThrottleRequests
;
...
...
app/Models/Legal/PropertyShareVerification.php
0 → 100644
View file @
ed51d0e
<?php
namespace
App\Models\Legal
;
use
App\Models\BaseModel
;
/**
* Class PropertyShareVerification
* @package App\Models\Legal
*/
class
PropertyShareVerification
extends
BaseModel
{
protected
$updated_at
=
false
;
protected
$guarded
=
[];
}
app/Services/PropertyTrackService.php
View file @
ed51d0e
...
...
@@ -5,6 +5,7 @@ namespace App\Services;
use
App\Helper\CosHelper
;
use
App\Helper\Response
;
use
App\Models\Legal\Contract
;
use
App\Models\Legal\PropertyShareVerification
;
use
App\Models\Legal\PropertyTrack
;
use
App\Models\Legal\PropertyTrackFile
;
use
App\Models\Legal\StakeholderContract
;
...
...
@@ -82,15 +83,26 @@ class PropertyTrackService extends Service
}
/**
* 资产歌曲-分享页面
常量
* 资产歌曲-分享页面
当前最新分享信息
* @return \Illuminate\Http\JsonResponse
*/
public
function
constant
()
public
function
share
()
{
$config
=
[
'valid_day'
=>
config
(
'musician.property'
)[
'valid_day'
],
//有效期天数
$data
=
[
'config'
=>
[
'valid_day'
=>
config
(
'musician.property'
)[
'valid_day'
],
//有效期天数
],
'phone'
=>
''
,
'share_url'
=>
''
,
'expire_time'
=>
''
,
];
return
Response
::
success
([
'config'
=>
$config
]);
if
(
$share
=
PropertyShareVerification
::
query
()
->
where
([
'pf_id'
=>
$this
->
request
->
input
(
'pf_id'
)])
->
orderByDesc
(
'id'
)
->
first
())
{
$data
[
'phone'
]
=
$share
->
phone
;
$data
[
'share_url'
]
=
$share
->
share_url
;
$data
[
'expire_time'
]
=
$share
->
expire_time
;
}
return
Response
::
success
(
$data
);
}
}
...
...
routes/property.php
View file @
ed51d0e
...
...
@@ -21,7 +21,7 @@ Route::group(["prefix"=>"property", "middleware"=>['auth.identifier']], function
});
Route
::
group
([
"prefix"
=>
"property"
],
function
(){
Route
::
get
(
'/
share/constant'
,
'PropertyTrackController@constant
'
);
Route
::
get
(
'/
track/share'
,
'PropertyTrackController@share
'
);
});
//资产-分享链接
...
...
Please
register
or
sign in
to post a comment