Commit 0effb36d by 孙龙

标签

parent 274117c3
......@@ -206,7 +206,7 @@ class LabelService {
public static function tryPrintLabel($data){
$key = self::getErpPrintLabelRedisKey();
Redis::set($key,$data);
Redis::setEx($key,3600*24*5,$data);
return $key;
}
......@@ -227,7 +227,11 @@ class LabelService {
$templateList = arrayChangeKeyByField($templateList,"id");
$returnHtml = [];
foreach($datas as $item){
for ($i=0;$i<=$item["print_num"];$i++){
$pringNums = $item["print_num"];
if(intval($pringNums) > 50 ){
$pringNums = 50;
}
for ($i=0;$i<=$pringNums;$i++){
$html = $templateList[$item["template_id"]]["template_extend"]["html"];
$createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item);
if($createHtml){
......
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