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
e42391c2
...
e42391c239f52bd8ad28ae91d6e3a26d8e68a4f5
authored
2022-12-04 19:46:30 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分享链接和验证
1 parent
ee619c36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
app/Services/PropertyTrackService.php
app/Services/PropertyTrackService.php
View file @
e42391c
...
...
@@ -3,6 +3,7 @@
namespace
App\Services
;
use
App\Helper\CosHelper
;
use
App\Helper\ErrorCode
;
use
App\Helper\Response
;
use
App\Models\Legal\Contract
;
use
App\Models\Legal\PropertyShare
;
...
...
@@ -114,6 +115,10 @@ class PropertyTrackService extends Service
*/
public
function
shareCreate
()
{
if
(
!
PropertyTrack
::
query
()
->
where
([
'from'
=>
$this
->
request
->
input
(
'from'
),
'id'
=>
$this
->
request
->
input
(
'track_id'
)])
->
first
())
{
return
Response
::
error
(
ErrorCode
::
SERVER_ERROR
,
'非法请求'
);
}
$propertyConfig
=
config
(
'musician.property'
);
$share
=
$propertyConfig
[
'base_url'
]
.
uniqid
();
$share_url_hash
=
crc64
(
$share
);
...
...
Please
register
or
sign in
to post a comment