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
a75196cb
...
a75196cb6ccea8f72f7b0091f3048816a45992c8
authored
2022-12-05 19:16:59 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
验证分享链接
1 parent
05e8fa68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
app/Models/Legal/PropertyShare.php
app/Services/PropertyTrackService.php
app/Models/Legal/PropertyShare.php
View file @
a75196c
...
...
@@ -14,6 +14,5 @@ class PropertyShare extends BaseModel
use
SoftDeletes
;
protected
$updated_at
=
false
;
protected
$guarded
=
[];
}
...
...
app/Services/PropertyTrackService.php
View file @
a75196c
...
...
@@ -182,7 +182,7 @@ class PropertyTrackService extends Service
{
$url
=
$this
->
request
->
input
(
'url'
);
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
())
{
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
);
...
...
Please
register
or
sign in
to post a comment