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
05e8fa68
...
05e8fa68087718470291ac4966f34a2bbd91b263
authored
2022-12-05 19:12:58 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
验证分享链接
1 parent
1b11d067
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Services/PropertyTrackService.php
routes/property.php
app/Services/PropertyTrackService.php
View file @
05e8fa6
...
...
@@ -182,7 +182,7 @@ class PropertyTrackService extends Service
{
$url
=
$this
->
request
->
input
(
'url'
);
if
(
!
$res
=
PropertyShare
::
withTrashed
()
->
where
([
'share_url_hash'
=>
crc64
(
$url
),
'from'
=>
$this
->
request
->
input
(
'from'
)])
->
where
(
'expire_time'
,
'<='
,
$this
->
now
)
->
first
())
{
if
(
!
$res
=
PropertyShare
::
withTrashed
()
->
where
([
'share_url_hash'
=>
crc64
(
$url
),
'
phone'
=>
$this
->
request
->
input
(
'phone'
),
'
from'
=>
$this
->
request
->
input
(
'from'
)])
->
where
(
'expire_time'
,
'<='
,
$this
->
now
)
->
first
())
{
return
Response
::
error
(
ErrorCode
::
URL_CHECK_FAIL
);
}
if
(
!
is_null
(
$res
->
deleted_at
))
return
Response
::
error
(
ErrorCode
::
URL_CHECK_FAIL
);
...
...
routes/property.php
View file @
05e8fa6
...
...
@@ -23,7 +23,7 @@ Route::group(["prefix"=>"property", "middleware"=>['auth.identifier']], function
Route
::
group
([
"prefix"
=>
"property"
],
function
(){
Route
::
get
(
'/track/share'
,
'PropertyTrackController@share'
);
Route
::
ge
t
(
'/track/shareCheck'
,
'PropertyTrackController@shareCheck'
);
Route
::
pos
t
(
'/track/shareCheck'
,
'PropertyTrackController@shareCheck'
);
Route
::
get
(
'/track/shareUser'
,
'PropertyTrackController@shareUser'
);
Route
::
get
(
'/track/shareFileType'
,
'PropertyTrackController@shareFileType'
);
});
...
...
Please
register
or
sign in
to post a comment