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
33a823a7
Commit
33a823a7
authored
Jun 08, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test exp excel
parent
e89b5371
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
NctController.php
app/Http/Controllers/Api/NctController.php
+12
-1
No files found.
app/Http/Controllers/Api/NctController.php
View file @
33a823a7
...
...
@@ -90,9 +90,20 @@ class NctController extends Controller
// Sheet manipulation
foreach
(
$tracks
as
$key
=>
$val
)
{
$sheet
->
cell
(
'A'
.
(
$key
+
1
),
function
(
$cell
)
use
(
$val
){
// manipulate the cell
$cell
->
setValue
(
$val
[
'title'
]);
});
$sheet
->
cell
(
'B'
.
(
$key
+
1
),
function
(
$cell
)
use
(
$val
){
$cell
->
setValue
(
$val
[
'id_nct'
]);
});
$sheet
->
cell
(
'C'
.
(
$key
+
1
),
function
(
$cell
)
use
(
$val
){
$cell
->
setValue
(
$val
[
'id_nct_str'
]);
});
$sheet
->
cell
(
'D'
.
(
$key
+
1
),
function
(
$cell
)
use
(
$val
){
$cell
->
setValue
(
$val
[
'singer'
]);
});
$sheet
->
cell
(
'E'
.
(
$key
+
1
),
function
(
$cell
)
use
(
$val
){
$cell
->
setValue
(
$val
[
'link'
]);
});
}
/*$sheet->cells('A1:A5', function($cells) {
...
...
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