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
d2e80d7f
...
d2e80d7f05c6939cb4404d1b4319f6b68d117d0c
authored
2021-12-02 11:03:20 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
f497f3b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
app/Models/Legal/Contract.php
app/Services/MusicianSongService.php
app/Models/Legal/Contract.php
View file @
d2e80d7
...
...
@@ -113,36 +113,33 @@ class Contract extends BaseModel
/**
* @param $cooperation_type
* @param $right
* @param $right
getModel
* @return string
*/
public
static
function
getModel
(
$cooperation_type
,
$right
)
{
switch
(
$cooperation_type
)
{
case
-
1
:
return
'未填写'
;
case
0
:
return
'无'
;
case
1
:
return
"一次性费用"
.
self
::
formatCost
(
$right
);
break
;
case
2
:
return
"分成"
.
self
::
formatDivide
(
$right
);
break
;
case
3
:
return
'分成'
.
self
::
formatDivide
(
$right
)
.
'+预付'
.
self
::
formatPrepaid
(
$right
);
break
;
case
5
:
return
'分成'
.
self
::
formatDivide
(
$right
)
.
'+一次性费用'
.
self
::
formatCost
(
$right
);
break
;
case
6
:
return
'抵扣成本后再分成'
.
self
::
formatDivide
(
$right
);
break
;
case
7
:
return
'分成'
.
self
::
formatDivide
(
$right
)
.
'+预付'
.
self
::
formatPrepaid
(
$right
)
.
'+一次性费用'
.
self
::
formatCost
(
$right
);
break
;
case
8
:
return
'抵扣成本后分成'
.
self
::
formatDivide
(
$right
)
.
'+预付'
.
self
::
formatPrepaid
(
$right
);
break
;
case
9
:
return
'一次性费用'
.
self
::
formatCost
(
$right
)
.
'+抵扣成本后分成'
.
self
::
formatDivide
(
$right
);
break
;
}
}
...
...
app/Services/MusicianSongService.php
View file @
d2e80d7
...
...
@@ -236,7 +236,7 @@ class MusicianSongService extends Service
//新数据
$rights
[]
=
[
'role'
=>
Contract
::
transformRole
(
$stakeholder_contract
[
'right_type'
]),
'right'
=>
'test'
,
'right'
=>
Contract
::
getModel
(
$item
[
'contract'
][
'cooperation_type'
],
[
$stakeholder_contract
])
,
];
}
}
...
...
Please
register
or
sign in
to post a comment