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
6d86a205
...
6d86a205584e120cde3526344952601ced4e071e
authored
2022-04-15 17:28:49 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
aaab0c94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
app/Models/Legal/Contract.php
app/Services/MusicianAgreementService.php
app/Models/Legal/Contract.php
View file @
6d86a20
...
...
@@ -277,7 +277,21 @@ class Contract extends BaseModel
}
return
array_filter
(
$names
);
}
/**
* @return string
*/
public
function
getTreatyTypeNameAttribute
()
{
switch
(
$this
->
treaty_type
)
{
case
1
:
return
'唱片约艺人'
;
case
2
:
return
'全约艺人'
;
case
3
:
return
'mcn达人'
;
}
}
/**
...
...
app/Services/MusicianAgreementService.php
View file @
6d86a20
...
...
@@ -36,6 +36,7 @@ class MusicianAgreementService extends Service
$file
=
$client
->
getPreviewUrl
(
$file
);
}
$item
->
setAttribute
(
'treaty_type'
,
$item
->
treaty_type_name
);
$item
->
setAttribute
(
'service_type'
,
$item
->
service_type_name
);
$item
->
setAttribute
(
'files'
,
$files
);
$item
->
setAttribute
(
'files_new'
,
$item
->
filesNewTreaty
);
...
...
Please
register
or
sign in
to post a comment