Commit ceeacac4 by 孙龙

打印

parent 3977458d
Showing with 4 additions and 0 deletions
...@@ -226,12 +226,15 @@ class LabelService { ...@@ -226,12 +226,15 @@ class LabelService {
$templateList = arrayChangeKeyByField($templateList,"id"); $templateList = arrayChangeKeyByField($templateList,"id");
$returnHtml = []; $returnHtml = [];
foreach($datas as $item){ foreach($datas as $item){
for ($i=0;$i<=$item["print_num"];$i++){
$html = $templateList[$item["template_id"]]["template_extend"]["html"]; $html = $templateList[$item["template_id"]]["template_extend"]["html"];
$createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item); $createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item);
if($createHtml){ if($createHtml){
array_push($returnHtml,$createHtml->outertext); array_push($returnHtml,$createHtml->outertext);
} }
} }
}
return $returnHtml; return $returnHtml;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment