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
ead1e8ce
...
ead1e8ce1c6faed4097449e9828722dd31781a61
authored
2022-12-15 16:26:24 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
c5de4bbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
app/Services/PropertyTrackService.php
app/Services/PropertyTrackService.php
View file @
ead1e8c
...
...
@@ -206,9 +206,20 @@ class PropertyTrackService extends Service
{
$url
=
$this
->
request
->
input
(
'url'
);
if
(
!
$res
=
PropertyShare
::
withTrashed
()
->
where
([
'share_url_hash'
=>
crc64
(
$url
),
'phone'
=>
$this
->
request
->
input
(
'phone'
)])
->
where
(
'expire_time'
,
'>'
,
$this
->
now
)
->
first
())
{
if
(
!
$res
=
PropertyShare
::
withTrashed
()
->
where
([
'share_url_hash'
=>
crc64
(
$url
)])
->
first
())
{
return
Response
::
error
(
ErrorCode
::
URL_FAIL
);
}
if
(
$this
->
now
>
$res
->
expire_time
)
{
//过期
return
Response
::
error
(
ErrorCode
::
URL_EXPIRE
);
}
if
(
$res
->
phone
!=
$this
->
request
->
input
(
'phone'
))
{
return
Response
::
error
(
ErrorCode
::
URL_CHECK_FAIL
);
}
if
(
!
is_null
(
$res
->
deleted_at
))
return
Response
::
error
(
ErrorCode
::
URL_CHECK_FAIL
);
...
...
Please
register
or
sign in
to post a comment