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
6b864a3f
...
6b864a3f888f07dde0290c96f5a5be87adb59036
authored
2022-12-02 15:56:06 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
获取项目名
1 parent
cca90f22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
app/Models/Legal/Project.php
app/Services/PropertyTrackService.php
app/Models/Legal/Project.php
0 → 100644
View file @
6b864a3
<?php
namespace
App\Models\Legal
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
/**
* Class Project
* @package App\Models\Legal
*/
class
Project
extends
BaseModel
{
use
HasFactory
,
SoftDeletes
;
}
app/Services/PropertyTrackService.php
View file @
6b864a3
...
...
@@ -12,6 +12,7 @@ use App\Models\Legal\Treaty;
use
App\Models\Musician\AppCompany
;
use
App\Models\Musician\AppCompanyUser
;
use
Illuminate\Database\Eloquent\Builder
;
use
Illuminate\Http\Request
;
use
Qcloud\Cos\Client
;
/**
...
...
@@ -20,6 +21,7 @@ use Qcloud\Cos\Client;
*/
class
PropertyTrackService
extends
Service
{
/**
* 歌曲文件列表
* @return \Illuminate\Http\JsonResponse
...
...
@@ -47,7 +49,7 @@ class PropertyTrackService extends Service
$data
=
[];
//详情
if
(
$track
=
PropertyTrack
::
query
()
->
where
([
'id'
=>
$this
->
request
->
input
(
'track_id'
),
'from'
=>
1
])
->
first
())
{
if
(
$track
=
PropertyTrack
::
query
()
->
w
ith
(
'project:id,name'
)
->
w
here
([
'id'
=>
$this
->
request
->
input
(
'track_id'
),
'from'
=>
1
])
->
first
())
{
$user
=
AppCompany
::
query
()
->
where
([
'company_id'
=>
$track
->
create_admin
])
->
first
();
$track
->
setAttribute
(
'submit_name'
,
$user
?
$user
->
company_name
:
''
);
$data
=
$track
;
...
...
Please
register
or
sign in
to post a comment