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
a0fd0af1
authored
May 22, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
42800378
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
app/Services/OfflineLabelService.php
storage/offline_print/1000.txt
app/Services/OfflineLabelService.php
View file @
a0fd0af1
...
@@ -21,13 +21,14 @@ class OfflineLabelService{
...
@@ -21,13 +21,14 @@ class OfflineLabelService{
foreach
(
$data
as
$key
=>
$item
){
foreach
(
$data
as
$key
=>
$item
){
$item
=
array_map
(
"trim"
,
$item
);
$item
=
array_map
(
"trim"
,
$item
);
foreach
(
$item
as
$k
=>
$vv
){
// foreach($item as $k=>$vv){
if
(
in_array
(
$k
,[
0
,
1
,
2
,
3
])){
// if(in_array($k,[0,1,2,3,4,5,6,7])){
if
(
$vv
==
""
||
$vv
==
null
){
// if($vv == "" || $vv == null){
unset
(
$item
);
// unset($item);
}
// }
}
// }
}
// if()
// }
if
(
isset
(
$item
)
&&
!
empty
(
$item
)){
if
(
isset
(
$item
)
&&
!
empty
(
$item
)){
$arr
[]
=
$item
;
$arr
[]
=
$item
;
}
}
...
...
storage/offline_print/1000.txt
View file @
a0fd0af1
This diff could not be displayed because it is too large.
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