*
Showing
2 changed files
with
15 additions
and
0 deletions
... | @@ -277,7 +277,21 @@ class Contract extends BaseModel | ... | @@ -277,7 +277,21 @@ class Contract extends BaseModel |
277 | } | 277 | } |
278 | 278 | ||
279 | return array_filter($names); | 279 | return array_filter($names); |
280 | } | ||
280 | 281 | ||
282 | /** | ||
283 | * @return string | ||
284 | */ | ||
285 | public function getTreatyTypeNameAttribute() | ||
286 | { | ||
287 | switch ($this->treaty_type) { | ||
288 | case 1: | ||
289 | return '唱片约艺人'; | ||
290 | case 2: | ||
291 | return '全约艺人'; | ||
292 | case 3: | ||
293 | return 'mcn达人'; | ||
294 | } | ||
281 | } | 295 | } |
282 | 296 | ||
283 | /** | 297 | /** | ... | ... |
... | @@ -36,6 +36,7 @@ class MusicianAgreementService extends Service | ... | @@ -36,6 +36,7 @@ class MusicianAgreementService extends Service |
36 | $file = $client->getPreviewUrl($file); | 36 | $file = $client->getPreviewUrl($file); |
37 | } | 37 | } |
38 | 38 | ||
39 | $item->setAttribute('treaty_type', $item->treaty_type_name); | ||
39 | $item->setAttribute('service_type', $item->service_type_name); | 40 | $item->setAttribute('service_type', $item->service_type_name); |
40 | $item->setAttribute('files', $files); | 41 | $item->setAttribute('files', $files); |
41 | $item->setAttribute('files_new', $item->filesNewTreaty); | 42 | $item->setAttribute('files_new', $item->filesNewTreaty); | ... | ... |
-
Please register or sign in to post a comment