Merge pull request '调整XLSX前置服务的文本处理逻辑' (#247) from dev into main

Reviewed-on: #247
This commit is contained in:
mkm 2024-10-09 15:29:48 +08:00
commit e50201030b

View File

@ -30,9 +30,11 @@ class Beforehand
$textRun =$section->addTextRun();
$textRun->addText($v['system_store'], $fontStyle);
$textRun->addText(' '.mb_substr($v['subtitle'], 0, 8, 'UTF-8'), $fontStyle1);
$textRun->addText(' '.$v['subtitle'], $fontStyle1);
$section->addText(mb_substr( $v['store_name'], 0, 16, 'UTF-8'), $fontStyle2);
$section->addText($v['address'], $fontStyle3);
$section->addPageBreak();
}
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');