Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
note-library
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ceeacac4
authored
Feb 20, 2023
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印
parent
3977458d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
app/Services/LabelService.php
app/Services/LabelService.php
View file @
ceeacac4
...
@@ -226,11 +226,14 @@ class LabelService {
...
@@ -226,11 +226,14 @@ class LabelService {
$templateList
=
arrayChangeKeyByField
(
$templateList
,
"id"
);
$templateList
=
arrayChangeKeyByField
(
$templateList
,
"id"
);
$returnHtml
=
[];
$returnHtml
=
[];
foreach
(
$datas
as
$item
){
foreach
(
$datas
as
$item
){
$html
=
$templateList
[
$item
[
"template_id"
]][
"template_extend"
][
"html"
];
for
(
$i
=
0
;
$i
<=
$item
[
"print_num"
];
$i
++
){
$createHtml
=
(
new
\App\Services\LabelService
)
->
getLabelOfflineHtml
(
$html
,
$item
);
$html
=
$templateList
[
$item
[
"template_id"
]][
"template_extend"
][
"html"
];
if
(
$createHtml
){
$createHtml
=
(
new
\App\Services\LabelService
)
->
getLabelOfflineHtml
(
$html
,
$item
);
array_push
(
$returnHtml
,
$createHtml
->
outertext
);
if
(
$createHtml
){
array_push
(
$returnHtml
,
$createHtml
->
outertext
);
}
}
}
}
}
return
$returnHtml
;
return
$returnHtml
;
}
}
...
...
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