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
23e68266
...
23e68266a599d6aa67b53f275e21f8a9d80344b6
authored
2022-11-29 14:07:48 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
6ef57e1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
app/Models/Legal/PropertyTrack.php
app/Services/PropertyTrackService.php
app/Models/Legal/PropertyTrack.php
View file @
23e6826
...
...
@@ -10,7 +10,7 @@ class PropertyTrack extends BaseModel
use
SoftDeletes
;
public
$hidden
=
[
'deleted_at'
,
'updated_at'
,
'apply_id'
,
'song_id'
,
'project_id'
,
'company_id'
'deleted_at'
,
'updated_at'
,
'apply_id'
,
'song_id'
,
'project_id'
,
'company_id'
,
'from'
,
'last_admin'
,
'create_admin'
];
public
$guarded
=
[];
...
...
app/Services/PropertyTrackService.php
View file @
23e6826
...
...
@@ -8,6 +8,7 @@ use App\Models\Legal\Contract;
use
App\Models\Legal\PropertyTrack
;
use
App\Models\Legal\StakeholderContract
;
use
App\Models\Legal\Treaty
;
use
App\Models\Musician\AppCompany
;
use
App\Models\Musician\AppCompanyUser
;
use
Illuminate\Database\Eloquent\Builder
;
use
Qcloud\Cos\Client
;
...
...
@@ -44,10 +45,11 @@ class PropertyTrackService extends Service
{
$data
=
[];
//详情
if
(
$track
=
PropertyTrack
::
query
()
->
where
([
'id'
=>
$this
->
request
->
input
(
'track_id'
),
'from'
=>
1
])
->
first
())
{
$user
=
AppCompany
User
::
query
()
->
where
([
'
id'
=>
$track
->
create_admin
])
->
first
();
$track
->
setAttribute
(
'submit_name'
,
$user
?
$user
->
name
:
''
);
return
Response
::
success
()
;
$user
=
AppCompany
::
query
()
->
where
([
'company_
id'
=>
$track
->
create_admin
])
->
first
();
$track
->
setAttribute
(
'submit_name'
,
$user
?
$user
->
company_
name
:
''
);
$data
=
$track
;
}
return
Response
::
success
(
$data
);
...
...
Please
register
or
sign in
to post a comment