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
1cbdc065
authored
Feb 23, 2023
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印报错 二维码 一维码么数据报错问题
parent
ff9acd37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app/Services/LabelService.php
app/Services/LabelService.php
View file @
1cbdc065
...
...
@@ -142,6 +142,9 @@ class LabelService {
foreach
(
$yiweimaits
as
$k
=>
$yiweimait
){
try
{
$a
=
$yiweimait
->
style
;
if
(
empty
(
$yiweimait
->
datatypes
)){
$yiweimait
->
datatypes
=
"暂无数据"
;
}
$b
=
'data:image/png;base64,'
.
DNS1D
::
getBarcodePNG
(
$yiweimait
->
datatypes
,
"C128"
);
$c
=
preg_replace
(
'/background: url\((.*?)\) 0% 0% \/ 100% 100%/'
,
" background: url(
{
$b
}
) 0% 0% / 100% 100% "
,
$a
);
$yiweimait
->
style
=
$c
;
...
...
@@ -154,6 +157,9 @@ class LabelService {
foreach
(
$erweimas
as
$k
=>
$erweima
){
try
{
$a
=
$erweima
->
style
;
if
(
empty
(
$erweima
->
datatypes
)){
$erweima
->
datatypes
=
"暂无数据"
;
}
$b
=
'data:image/png;base64,'
.
DNS2D
::
getBarcodePNG
(
$erweima
->
datatypes
,
"QRCODE"
);
$c
=
preg_replace
(
'/background: url\((.*?)\) 0% 0% \/ 100% 100%/'
,
" background: url(
{
$b
}
) 0% 0% / 100% 100% "
,
$a
);
$erweima
->
style
=
$c
;
...
...
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