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
f497f3b7
...
f497f3b7f6d20837720efdad6a417a9a85cd1aa5
authored
2021-12-02 10:32:40 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
c903858e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
app/Services/MusicianSongService.php
app/Services/MusicianSongService.php
View file @
f497f3b
...
...
@@ -226,12 +226,18 @@ class MusicianSongService extends Service
$file
=
$client
->
getPreviewUrl
(
$file
);
}
$right
=
$role
=
[];
$right
=
$role
=
$rights
=
[];
if
(
!
empty
(
$item
[
'contract'
][
'stakeholder_contract'
]))
{
foreach
(
$item
[
'contract'
][
'stakeholder_contract'
]
as
$stakeholder_contract
)
{
if
(
in_array
(
$stakeholder_contract
[
'stakeholder_id'
],
$this
->
stakeholder_ids
))
{
$right
[]
=
$stakeholder_contract
;
$role
=
array_merge
(
$role
,
Contract
::
transformRole
(
$stakeholder_contract
[
'right_type'
]));
//新数据
$rights
[]
=
[
'role'
=>
Contract
::
transformRole
(
$stakeholder_contract
[
'right_type'
]),
'right'
=>
'test'
,
];
}
}
}
...
...
@@ -247,7 +253,7 @@ class MusicianSongService extends Service
'limit'
=>
is_null
(
$item
[
'contract'
][
'date_ending'
])
?
'永久'
:
data_diff
(
$item
[
'contract'
][
'date_starting'
],
$item
[
'contract'
][
'date_ending'
]),
'district'
=>
Contract
::
getDistrict
(
$item
[
'contract'
][
'district_id'
]),
'exclusive'
=>
Contract
::
isExclusive
(
$item
[
'contract'
][
'is_exclusive'
]),
'rights'
=>
[[
'role'
=>
'作词作曲'
,
'right'
=>
'test'
],[
'role'
=>
'演唱'
,
'right'
=>
'test'
]]
,
'rights'
=>
$rights
,
];
}
...
...
Please
register
or
sign in
to post a comment