Commit ceeacac4 by 孙龙

打印

parent 3977458d
Showing with 7 additions and 4 deletions
...@@ -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;
} }
......
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