Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crawler.vmusicchart.vn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Văn Đoan
crawler.vmusicchart.vn
Commits
2f205883
Commit
2f205883
authored
Jul 06, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug ko lấy được id của keeng
parent
d6486fa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
KeengCrawlerTrackCommand.php
app/Console/Commands/Keeng/KeengCrawlerTrackCommand.php
+6
-1
No files found.
app/Console/Commands/Keeng/KeengCrawlerTrackCommand.php
View file @
2f205883
...
...
@@ -71,7 +71,12 @@ class KeengCrawlerTrackCommand extends Command
$track_db
=
Track
::
where
(
'title'
,
$track
->
name
)
->
take
(
1
)
->
get
();
if
(
isset
(
$track_db
[
0
]))
{
$track_db
[
0
]
->
link_keeng
=
isset
(
$track
->
url
)
?
$track
->
url
:
null
;
$track_db
[
0
]
->
id_keeng
=
isset
(
$track
->
identify
)
?
$track
->
identify
:
null
;
// ID keeng nằm ở 2 key data khác nhau, có bài chỉ ở 1 nơi nên phải check
$id_keeng
=
(
isset
(
$track
->
identify
)
&&
$track
->
identify
!=
''
)
?
$track
->
identify
:
null
;
if
(
empty
(
$id_keeng
))
{
$id_keeng
=
(
isset
(
$track
->
info_extra
->
identify
))
?
$track
->
info_extra
->
identify
:
null
;
}
$track_db
[
0
]
->
id_keeng
=
$id_keeng
;
if
(
empty
(
$track_db
[
0
]
->
singer_list
))
{
$track_db
[
0
]
->
singer_list
=
isset
(
$track
->
singer
)
?
$track
->
singer
:
null
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment