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
0effb36d
authored
Feb 21, 2023
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
标签
parent
274117c3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
app/Services/LabelService.php
storage/offline_print/1000.txt
app/Services/LabelService.php
View file @
0effb36d
...
...
@@ -206,7 +206,7 @@ class LabelService {
public
static
function
tryPrintLabel
(
$data
){
$key
=
self
::
getErpPrintLabelRedisKey
();
Redis
::
set
(
$key
,
$data
);
Redis
::
set
Ex
(
$key
,
3600
*
24
*
5
,
$data
);
return
$key
;
}
...
...
@@ -227,7 +227,11 @@ class LabelService {
$templateList
=
arrayChangeKeyByField
(
$templateList
,
"id"
);
$returnHtml
=
[];
foreach
(
$datas
as
$item
){
for
(
$i
=
0
;
$i
<=
$item
[
"print_num"
];
$i
++
){
$pringNums
=
$item
[
"print_num"
];
if
(
intval
(
$pringNums
)
>
50
){
$pringNums
=
50
;
}
for
(
$i
=
0
;
$i
<=
$pringNums
;
$i
++
){
$html
=
$templateList
[
$item
[
"template_id"
]][
"template_extend"
][
"html"
];
$createHtml
=
(
new
\App\Services\LabelService
)
->
getLabelOfflineHtml
(
$html
,
$item
);
if
(
$createHtml
){
...
...
storage/offline_print/1000.txt
View file @
0effb36d
This diff is collapsed.
Click to expand it.
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