Commit ceeacac4 by 孙龙

打印

parent 3977458d
Showing with 7 additions and 4 deletions
......@@ -226,11 +226,14 @@ class LabelService {
$templateList = arrayChangeKeyByField($templateList,"id");
$returnHtml = [];
foreach($datas as $item){
$html = $templateList[$item["template_id"]]["template_extend"]["html"];
$createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item);
if($createHtml){
array_push($returnHtml,$createHtml->outertext);
for ($i=0;$i<=$item["print_num"];$i++){
$html = $templateList[$item["template_id"]]["template_extend"]["html"];
$createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item);
if($createHtml){
array_push($returnHtml,$createHtml->outertext);
}
}
}
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